home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_emacs.idb / usr / freeware / share / emacs / 19.34 / lisp / mouse-sel.elc.z / mouse-sel.elc
Emacs Compiled Lisp  |  1998-10-28  |  13.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
100% file Emacs/XEmacs v19 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 65 72 69 6b 40 6e 61 |piled by| erik@na|
|00000020| 67 67 75 6d 2e 6e 6f 20 | 6f 6e 20 53 75 6e 20 4a |ggum.no |on Sun J|
|00000030| 61 6e 20 31 34 20 30 36 | 3a 31 36 3a 34 35 20 31 |an 14 06|:16:45 1|
|00000040| 39 39 36 0a 3b 3b 3b 20 | 66 72 6f 6d 20 66 69 6c |996.;;; |from fil|
|00000050| 65 20 2f 67 64 2f 67 6e | 75 2f 65 6d 61 63 73 2f |e /gd/gn|u/emacs/|
|00000060| 31 39 2e 30 2f 6c 69 73 | 70 2f 6d 6f 75 73 65 2d |19.0/lis|p/mouse-|
|00000070| 73 65 6c 2e 65 6c 0a 3b | 3b 3b 20 65 6d 61 63 73 |sel.el.;|;; emacs|
|00000080| 20 76 65 72 73 69 6f 6e | 20 31 39 2e 33 30 2e 37 | version| 19.30.7|
|00000090| 30 2e 36 2e 0a 3b 3b 3b | 20 62 79 74 65 63 6f 6d |0.6..;;;| bytecom|
|000000a0| 70 20 76 65 72 73 69 6f | 6e 20 46 53 46 20 32 2e |p versio|n FSF 2.|
|000000b0| 31 30 0a 3b 3b 3b 20 6f | 70 74 69 6d 69 7a 61 74 |10.;;; o|ptimizat|
|000000c0| 69 6f 6e 20 69 73 20 6f | 6e 2e 0a 3b 3b 3b 20 74 |ion is o|n..;;; t|
|000000d0| 68 69 73 20 66 69 6c 65 | 20 75 73 65 73 20 6f 70 |his file| uses op|
|000000e0| 63 6f 64 65 73 20 77 68 | 69 63 68 20 64 6f 20 6e |codes wh|ich do n|
|000000f0| 6f 74 20 65 78 69 73 74 | 20 69 6e 20 45 6d 61 63 |ot exist| in Emac|
|00000100| 73 20 31 38 2e 0a 0a 28 | 69 66 20 28 61 6e 64 20 |s 18...(|if (and |
|00000110| 28 62 6f 75 6e 64 70 20 | 27 65 6d 61 63 73 2d 76 |(boundp |'emacs-v|
|00000120| 65 72 73 69 6f 6e 29 0a | 09 20 28 6f 72 20 28 61 |ersion).|. (or (a|
|00000130| 6e 64 20 28 62 6f 75 6e | 64 70 20 27 65 70 6f 63 |nd (boun|dp 'epoc|
|00000140| 68 3a 3a 76 65 72 73 69 | 6f 6e 29 20 65 70 6f 63 |h::versi|on) epoc|
|00000150| 68 3a 3a 76 65 72 73 69 | 6f 6e 29 0a 09 20 20 20 |h::versi|on).. |
|00000160| 20 20 28 73 74 72 69 6e | 67 2d 6c 65 73 73 70 20 | (strin|g-lessp |
|00000170| 65 6d 61 63 73 2d 76 65 | 72 73 69 6f 6e 20 22 31 |emacs-ve|rsion "1|
|00000180| 39 2e 32 39 22 29 29 29 | 0a 20 20 20 20 28 65 72 |9.29")))|. (er|
|00000190| 72 6f 72 20 22 60 6d 6f | 75 73 65 2d 73 65 6c 2e |ror "`mo|use-sel.|
|000001a0| 65 6c 27 20 77 61 73 20 | 63 6f 6d 70 69 6c 65 64 |el' was |compiled|
|000001b0| 20 66 6f 72 20 45 6d 61 | 63 73 20 31 39 2e 32 39 | for Ema|cs 19.29|
|000001c0| 20 6f 72 20 6c 61 74 65 | 72 22 29 29 0a 0a 0a 28 | or late|r"))...(|
|000001d0| 62 79 74 65 2d 63 6f 64 | 65 20 22 c0 c1 21 88 c2 |byte-cod|e "..!..|
|000001e0| c3 21 88 c2 c4 21 87 22 | 20 5b 70 72 6f 76 69 64 |.!...!."| [provid|
|000001f0| 65 20 6d 6f 75 73 65 2d | 73 65 6c 20 72 65 71 75 |e mouse-|sel requ|
|00000200| 69 72 65 20 6d 6f 75 73 | 65 20 74 68 69 6e 67 61 |ire mous|e thinga|
|00000210| 74 70 74 5d 20 32 29 0a | 23 40 32 33 35 20 2a 4c |tpt] 2).|#@235 *L|
|00000220| 65 61 76 65 20 70 6f 69 | 6e 74 20 6e 65 61 72 20 |eave poi|nt near |
|00000230| 6c 61 73 74 20 6d 6f 75 | 73 65 20 70 6f 73 69 74 |last mou|se posit|
|00000240| 69 6f 6e 2e 0a 49 66 20 | 6e 6f 6e 2d 6e 69 6c 2c |ion..If |non-nil,|
|00000250| 20 5c 5b 6d 6f 75 73 65 | 2d 73 65 6c 65 63 74 5d | \[mouse|-select]|
|00000260| 20 61 6e 64 20 5c 5b 6d | 6f 75 73 65 2d 65 78 74 | and \[m|ouse-ext|
|00000270| 65 6e 64 5d 20 77 69 6c | 6c 20 6c 65 61 76 65 20 |end] wil|l leave |
|00000280| 70 6f 69 6e 74 20 61 74 | 20 74 68 65 20 65 6e 64 |point at| the end|
|00000290| 0a 6f 66 20 74 68 65 20 | 72 65 67 69 6f 6e 20 6e |.of the |region n|
|000002a0| 65 61 72 65 73 74 20 74 | 6f 20 77 68 65 72 65 20 |earest t|o where |
|000002b0| 74 68 65 20 6d 6f 75 73 | 65 20 6c 61 73 74 20 77 |the mous|e last w|
|000002c0| 61 73 2e 0a 49 66 20 6e | 69 6c 2c 20 70 6f 69 6e |as..If n|il, poin|
|000002d0| 74 20 77 69 6c 6c 20 61 | 6c 77 61 79 73 20 62 65 |t will a|lways be|
|000002e0| 20 70 6c 61 63 65 64 20 | 61 74 20 74 68 65 20 62 | placed |at the b|
|000002f0| 65 67 69 6e 6e 69 6e 67 | 20 6f 66 20 74 68 65 20 |eginning| of the |
|00000300| 72 65 67 69 6f 6e 2e 1f | 0a 28 64 65 66 76 61 72 |region..|.(defvar|
|00000310| 20 6d 6f 75 73 65 2d 73 | 65 6c 2d 6c 65 61 76 65 | mouse-s|el-leave|
|00000320| 2d 70 6f 69 6e 74 2d 6e | 65 61 72 2d 6d 6f 75 73 |-point-n|ear-mous|
|00000330| 65 20 74 20 28 23 24 20 | 2e 20 2d 35 34 32 29 29 |e t (#$ |. -542))|
|00000340| 0a 23 40 37 30 20 2a 49 | 66 20 6e 6f 6e 2d 6e 69 |.#@70 *I|f non-ni|
|00000350| 6c 2c 20 5c 5b 6d 6f 75 | 73 65 2d 73 65 6c 65 63 |l, \[mou|se-selec|
|00000360| 74 5d 20 63 79 63 6c 65 | 73 20 74 68 65 20 63 6c |t] cycle|s the cl|
|00000370| 69 63 6b 2d 63 6f 75 6e | 74 73 20 61 66 74 65 72 |ick-coun|ts after|
|00000380| 20 34 20 63 6c 69 63 6b | 73 2e 1f 0a 28 64 65 66 | 4 click|s...(def|
|00000390| 76 61 72 20 6d 6f 75 73 | 65 2d 73 65 6c 2d 63 79 |var mous|e-sel-cy|
|000003a0| 63 6c 65 2d 63 6c 69 63 | 6b 73 20 74 20 28 23 24 |cle-clic|ks t (#$|
|000003b0| 20 2e 20 2d 38 33 38 29 | 29 0a 23 40 37 34 20 53 | . -838)|).#@74 S|
|000003c0| 65 74 20 74 6f 20 6e 69 | 6c 20 62 65 66 6f 72 65 |et to ni|l before|
|000003d0| 20 6c 6f 61 64 69 6e 67 | 20 60 6d 6f 75 73 65 2d | loading| `mouse-|
|000003e0| 73 65 6c 27 20 74 6f 20 | 70 72 65 76 65 6e 74 20 |sel' to |prevent |
|000003f0| 64 65 66 61 75 6c 74 20 | 6d 6f 75 73 65 20 62 69 |default |mouse bi|
|00000400| 6e 64 69 6e 67 73 2e 1f | 0a 28 64 65 66 76 61 72 |ndings..|.(defvar|
|00000410| 20 6d 6f 75 73 65 2d 73 | 65 6c 2d 64 65 66 61 75 | mouse-s|el-defau|
|00000420| 6c 74 2d 62 69 6e 64 69 | 6e 67 73 20 74 20 28 23 |lt-bindi|ngs t (#|
|00000430| 24 20 2e 20 39 35 39 29 | 29 0a 23 40 34 36 20 54 |$ . 959)|).#@46 T|
|00000440| 79 70 65 20 6f 66 20 50 | 52 49 4d 41 52 59 20 73 |ype of P|RIMARY s|
|00000450| 65 6c 65 63 74 69 6f 6e | 20 69 6e 20 63 75 72 72 |election| in curr|
|00000460| 65 6e 74 20 62 75 66 66 | 65 72 2e 1f 0a 28 64 65 |ent buff|er...(de|
|00000470| 66 76 61 72 20 6d 6f 75 | 73 65 2d 73 65 6c 2d 70 |fvar mou|se-sel-p|
|00000480| 72 69 6d 61 72 79 2d 74 | 68 69 6e 67 20 6e 69 6c |rimary-t|hing nil|
|00000490| 20 28 23 24 20 2e 20 31 | 30 38 37 29 29 0a 28 6d | (#$ . 1|087)).(m|
|000004a0| 61 6b 65 2d 76 61 72 69 | 61 62 6c 65 2d 62 75 66 |ake-vari|able-buf|
|000004b0| 66 65 72 2d 6c 6f 63 61 | 6c 20 28 71 75 6f 74 65 |fer-loca|l (quote|
|000004c0| 20 6d 6f 75 73 65 2d 73 | 65 6c 2d 70 72 69 6d 61 | mouse-s|el-prima|
|000004d0| 72 79 2d 74 68 69 6e 67 | 29 29 0a 23 40 34 38 20 |ry-thing|)).#@48 |
|000004e0| 54 79 70 65 20 6f 66 20 | 53 45 43 4f 4e 44 41 52 |Type of |SECONDAR|
|000004f0| 59 20 73 65 6c 65 63 74 | 69 6f 6e 20 69 6e 20 63 |Y select|ion in c|
|00000500| 75 72 72 65 6e 74 20 62 | 75 66 66 65 72 2e 1f 0a |urrent b|uffer...|
|00000510| 28 64 65 66 76 61 72 20 | 6d 6f 75 73 65 2d 73 65 |(defvar |mouse-se|
|00000520| 6c 2d 73 65 63 6f 6e 64 | 61 72 79 2d 74 68 69 6e |l-second|ary-thin|
|00000530| 67 20 6e 69 6c 20 28 23 | 24 20 2e 20 31 32 34 38 |g nil (#|$ . 1248|
|00000540| 29 29 0a 28 62 79 74 65 | 2d 63 6f 64 65 20 22 c0 |)).(byte|-code ".|
|00000550| c1 21 88 c2 0b 21 84 15 | 00 c4 c5 89 5c 22 13 c6 |.!...!..|....\"..|
|00000560| 0b c7 c8 23 88 c0 87 22 | 20 5b 6d 61 6b 65 2d 76 |...#..."| [make-v|
|00000570| 61 72 69 61 62 6c 65 2d | 62 75 66 66 65 72 2d 6c |ariable-|buffer-l|
|00000580| 6f 63 61 6c 20 6d 6f 75 | 73 65 2d 73 65 6c 2d 73 |ocal mou|se-sel-s|
|00000590| 65 63 6f 6e 64 61 72 79 | 2d 74 68 69 6e 67 20 6f |econdary|-thing o|
|000005a0| 76 65 72 6c 61 79 70 20 | 6d 6f 75 73 65 2d 73 65 |verlayp |mouse-se|
|000005b0| 63 6f 6e 64 61 72 79 2d | 6f 76 65 72 6c 61 79 20 |condary-|overlay |
|000005c0| 6d 61 6b 65 2d 6f 76 65 | 72 6c 61 79 20 31 20 6f |make-ove|rlay 1 o|
|000005d0| 76 65 72 6c 61 79 2d 70 | 75 74 20 66 61 63 65 20 |verlay-p|ut face |
|000005e0| 73 65 63 6f 6e 64 61 72 | 79 2d 73 65 6c 65 63 74 |secondar|y-select|
|000005f0| 69 6f 6e 5d 20 34 29 0a | 23 40 33 38 36 20 41 6c |ion] 4).|#@386 Al|
|00000600| 69 73 74 20 61 73 73 6f | 63 69 61 74 69 6e 67 20 |ist asso|ciating |
|00000610| 73 65 6c 65 63 74 69 6f | 6e 73 20 77 69 74 68 20 |selectio|ns with |
|00000620| 76 61 72 69 61 62 6c 65 | 73 2e 20 20 45 61 63 68 |variable|s. Each|
|00000630| 20 65 6c 65 6d 65 6e 74 | 20 69 73 20 6f 66 0a 74 | element| is of.t|
|00000640| 68 65 20 66 6f 72 6d 3a | 0a 0a 20 20 20 28 53 45 |he form:|.. (SE|
|00000650| 4c 45 43 54 49 4f 4e 2d | 4e 41 4d 45 20 4f 56 45 |LECTION-|NAME OVE|
|00000660| 52 4c 41 59 2d 53 59 4d | 42 4f 4c 20 53 45 4c 45 |RLAY-SYM|BOL SELE|
|00000670| 43 54 49 4f 4e 2d 54 48 | 49 4e 47 2d 53 59 4d 42 |CTION-TH|ING-SYMB|
|00000680| 4f 4c 29 0a 0a 77 68 65 | 72 65 20 20 20 53 45 4c |OL)..whe|re SEL|
|00000690| 45 43 54 49 4f 4e 2d 4e | 41 4d 45 20 20 20 20 20 |ECTION-N|AME |
|000006a0| 20 20 20 20 20 3d 20 6e | 61 6d 65 20 6f 66 20 73 | = n|ame of s|
|000006b0| 65 6c 65 63 74 69 6f 6e | 0a 20 20 20 20 20 20 20 |election|. |
|000006c0| 20 4f 56 45 52 4c 41 59 | 2d 53 59 4d 42 4f 4c 20 | OVERLAY|-SYMBOL |
|000006d0| 20 20 20 20 20 20 20 20 | 20 3d 20 6e 61 6d 65 20 | | = name |
|000006e0| 6f 66 20 76 61 72 69 61 | 62 6c 65 20 63 6f 6e 74 |of varia|ble cont|
|000006f0| 61 69 6e 69 6e 67 20 6f | 76 65 72 6c 61 79 20 74 |aining o|verlay t|
|00000700| 6f 20 75 73 65 0a 09 53 | 45 4c 45 43 54 49 4f 4e |o use..S|ELECTION|
|00000710| 2d 54 48 49 4e 47 2d 53 | 59 4d 42 4f 4c 20 09 3d |-THING-S|YMBOL .=|
|00000720| 20 6e 61 6d 65 20 6f 66 | 20 76 61 72 69 61 62 6c | name of| variabl|
|00000730| 65 20 77 68 65 72 65 20 | 74 68 65 20 63 75 72 72 |e where |the curr|
|00000740| 65 6e 74 20 73 65 6c 65 | 63 74 69 6f 6e 0a 20 09 |ent sele|ction. .|
|00000750| 09 09 09 20 20 74 79 70 | 65 20 66 6f 72 20 74 68 |... typ|e for th|
|00000760| 69 73 20 73 65 6c 65 63 | 74 69 6f 6e 20 73 68 6f |is selec|tion sho|
|00000770| 75 6c 64 20 62 65 20 73 | 74 6f 72 65 64 2e 1f 0a |uld be s|tored...|
|00000780| 28 64 65 66 63 6f 6e 73 | 74 20 6d 6f 75 73 65 2d |(defcons|t mouse-|
|00000790| 73 65 6c 2d 73 65 6c 65 | 63 74 69 6f 6e 2d 61 6c |sel-sele|ction-al|
|000007a0| 69 73 74 20 28 71 75 6f | 74 65 20 28 28 50 52 49 |ist (quo|te ((PRI|
|000007b0| 4d 41 52 59 20 6d 6f 75 | 73 65 2d 64 72 61 67 2d |MARY mou|se-drag-|
|000007c0| 6f 76 65 72 6c 61 79 20 | 6d 6f 75 73 65 2d 73 65 |overlay |mouse-se|
|000007d0| 6c 2d 70 72 69 6d 61 72 | 79 2d 74 68 69 6e 67 29 |l-primar|y-thing)|
|000007e0| 20 28 53 45 43 4f 4e 44 | 41 52 59 20 6d 6f 75 73 | (SECOND|ARY mous|
|000007f0| 65 2d 73 65 63 6f 6e 64 | 61 72 79 2d 6f 76 65 72 |e-second|ary-over|
|00000800| 6c 61 79 20 6d 6f 75 73 | 65 2d 73 65 6c 2d 73 65 |lay mous|e-sel-se|
|00000810| 63 6f 6e 64 61 72 79 2d | 74 68 69 6e 67 29 29 29 |condary-|thing)))|
|00000820| 20 28 23 24 20 2e 20 31 | 35 33 34 29 29 0a 23 40 | (#$ . 1|534)).#@|
|00000830| 31 34 36 20 46 75 6e 63 | 74 69 6f 6e 20 74 6f 20 |146 Func|tion to |
|00000840| 63 61 6c 6c 20 74 6f 20 | 73 65 74 20 73 65 6c 65 |call to |set sele|
|00000850| 63 74 69 6f 6e 2e 0a 43 | 61 6c 6c 65 64 20 77 69 |ction..C|alled wi|
|00000860| 74 68 20 74 77 6f 20 61 | 72 67 75 6d 65 6e 74 73 |th two a|rguments|
|00000870| 3a 0a 0a 20 20 53 45 4c | 45 43 54 49 4f 4e 2c 20 |:.. SEL|ECTION, |
|00000880| 74 68 65 20 6e 61 6d 65 | 20 6f 66 20 74 68 65 20 |the name| of the |
|00000890| 73 65 6c 65 63 74 69 6f | 6e 20 63 6f 6e 63 65 72 |selectio|n concer|
|000008a0| 6e 65 64 2c 20 61 6e 64 | 0a 20 20 56 41 4c 55 45 |ned, and|. VALUE|
|000008b0| 2c 20 74 68 65 20 74 65 | 78 74 20 74 6f 20 73 74 |, the te|xt to st|
|000008c0| 6f 72 65 2e 1f 0a 28 64 | 65 66 76 61 72 20 6d 6f |ore...(d|efvar mo|
|000008d0| 75 73 65 2d 73 65 6c 2d | 73 65 74 2d 73 65 6c 65 |use-sel-|set-sele|
|000008e0| 63 74 69 6f 6e 2d 66 75 | 6e 63 74 69 6f 6e 20 28 |ction-fu|nction (|
|000008f0| 62 79 74 65 2d 63 6f 64 | 65 20 22 c0 c1 21 85 07 |byte-cod|e "..!..|
|00000900| 00 c1 87 22 20 5b 66 62 | 6f 75 6e 64 70 20 78 2d |..." [fb|oundp x-|
|00000910| 73 65 74 2d 73 65 6c 65 | 63 74 69 6f 6e 5d 20 32 |set-sele|ction] 2|
|00000920| 29 20 28 23 24 20 2e 20 | 32 31 30 30 29 29 0a 23 |) (#$ . |2100)).#|
|00000930| 40 31 31 38 20 46 75 6e | 63 74 69 6f 6e 20 74 6f |@118 Fun|ction to|
|00000940| 20 63 61 6c 6c 20 74 6f | 20 67 65 74 20 74 68 65 | call to| get the|
|00000950| 20 73 65 6c 65 63 74 69 | 6f 6e 2e 0a 43 61 6c 6c | selecti|on..Call|
|00000960| 65 64 20 77 69 74 68 20 | 6f 6e 65 20 61 72 67 75 |ed with |one argu|
|00000970| 6d 65 6e 74 3a 0a 0a 20 | 20 20 53 45 4c 45 43 54 |ment:.. | SELECT|
|00000980| 49 4f 4e 3a 20 74 68 65 | 20 6e 61 6d 65 20 6f 66 |ION: the| name of|
|00000990| 20 74 68 65 20 73 65 6c | 65 63 74 69 6f 6e 20 63 | the sel|ection c|
|000009a0| 6f 6e 63 65 72 6e 65 64 | 2e 1f 0a 28 64 65 66 76 |oncerned|...(defv|
|000009b0| 61 72 20 6d 6f 75 73 65 | 2d 73 65 6c 2d 67 65 74 |ar mouse|-sel-get|
|000009c0| 2d 73 65 6c 65 63 74 69 | 6f 6e 2d 66 75 6e 63 74 |-selecti|on-funct|
|000009d0| 69 6f 6e 20 28 62 79 74 | 65 2d 63 6f 64 65 20 22 |ion (byt|e-code "|
|000009e0| c0 c1 21 85 07 00 c1 87 | 22 20 5b 66 62 6f 75 6e |..!.....|" [fboun|
|000009f0| 64 70 20 78 2d 67 65 74 | 2d 73 65 6c 65 63 74 69 |dp x-get|-selecti|
|00000a00| 6f 6e 5d 20 32 29 20 28 | 23 24 20 2e 20 32 33 35 |on] 2) (|#$ . 235|
|00000a10| 37 29 29 0a 23 40 35 31 | 39 20 44 65 74 65 72 6d |7)).#@51|9 Determ|
|00000a20| 69 6e 65 20 77 68 61 74 | 20 60 74 68 69 6e 67 27 |ine what| `thing'|
|00000a30| 20 60 6d 6f 75 73 65 2d | 73 65 6c 27 20 73 68 6f | `mouse-|sel' sho|
|00000a40| 75 6c 64 20 6f 70 65 72 | 61 74 65 20 6f 6e 2e 0a |uld oper|ate on..|
|00000a50| 54 68 65 20 66 69 72 73 | 74 20 61 72 67 75 6d 65 |The firs|t argume|
|00000a60| 6e 74 20 69 73 20 4e 43 | 4c 49 43 4b 53 2c 20 69 |nt is NC|LICKS, i|
|00000a70| 73 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |s the nu|mber of |
|00000a80| 63 6f 6e 73 65 63 75 74 | 69 76 65 0a 6d 6f 75 73 |consecut|ive.mous|
|00000a90| 65 20 63 6c 69 63 6b 73 | 20 61 74 20 74 68 65 20 |e clicks| at the |
|00000aa0| 73 61 6d 65 20 70 6f 73 | 69 74 69 6f 6e 2e 0a 0a |same pos|ition...|
|00000ab0| 44 6f 75 62 6c 65 2d 63 | 6c 69 63 6b 69 6e 67 20 |Double-c|licking |
|00000ac0| 6f 6e 20 77 6f 72 64 20 | 63 6f 6e 73 74 69 74 75 |on word |constitu|
|00000ad0| 65 6e 74 73 20 73 65 6c | 65 63 74 73 20 77 6f 72 |ents sel|ects wor|
|00000ae0| 64 73 2e 0a 44 6f 75 62 | 6c 65 2d 63 6c 69 63 6b |ds..Doub|le-click|
|00000af0| 69 6e 67 20 6f 6e 20 73 | 79 6d 62 6f 6c 20 63 6f |ing on s|ymbol co|
|00000b00| 6e 73 74 69 74 75 65 6e | 74 73 20 73 65 6c 65 63 |nstituen|ts selec|
|00000b10| 74 73 20 73 79 6d 62 6f | 6c 73 2e 0a 44 6f 75 62 |ts symbo|ls..Doub|
|00000b20| 6c 65 2d 63 6c 69 63 6b | 69 6e 67 20 6f 6e 20 71 |le-click|ing on q|
|00000b30| 75 6f 74 65 73 20 6f 72 | 20 70 61 72 65 6e 74 68 |uotes or| parenth|
|00000b40| 65 73 65 73 20 73 65 6c | 65 63 74 73 20 73 65 78 |eses sel|ects sex|
|00000b50| 70 73 2e 0a 44 6f 75 62 | 6c 65 2d 63 6c 69 63 6b |ps..Doub|le-click|
|00000b60| 69 6e 67 20 6f 6e 20 77 | 68 69 74 65 73 70 61 63 |ing on w|hitespac|
|00000b70| 65 20 73 65 6c 65 63 74 | 73 20 77 68 69 74 65 73 |e select|s whites|
|00000b80| 70 61 63 65 2e 0a 54 72 | 69 70 6c 65 2d 63 6c 69 |pace..Tr|iple-cli|
|00000b90| 63 6b 69 6e 67 20 73 65 | 6c 65 63 74 73 20 6c 69 |cking se|lects li|
|00000ba0| 6e 65 73 2e 0a 51 75 61 | 64 2d 63 6c 69 63 6b 69 |nes..Qua|d-clicki|
|00000bb0| 6e 67 20 73 65 6c 65 63 | 74 73 20 70 61 72 61 67 |ng selec|ts parag|
|00000bc0| 72 61 70 68 73 2e 0a 0a | 46 65 65 6c 20 66 72 65 |raphs...|Feel fre|
|00000bd0| 65 20 74 6f 20 72 65 2d | 64 65 66 69 6e 65 20 74 |e to re-|define t|
|00000be0| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 20 74 6f 20 |his func|tion to |
|00000bf0| 73 75 70 70 6f 72 74 20 | 79 6f 75 72 20 6f 77 6e |support |your own|
|00000c00| 20 64 65 73 69 72 65 64 | 0a 6d 75 6c 74 69 2d 63 | desired|.multi-c|
|00000c10| 6c 69 63 6b 20 73 65 6d | 61 6e 74 69 63 73 2e 1f |lick sem|antics..|
|00000c20| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 6d 6f 75 73 |.(defali|as 'mous|
|00000c30| 65 2d 73 65 6c 2d 64 65 | 74 65 72 6d 69 6e 65 2d |e-sel-de|termine-|
|00000c40| 73 65 6c 65 63 74 69 6f | 6e 2d 74 68 69 6e 67 20 |selectio|n-thing |
|00000c50| 23 5b 28 6e 63 6c 69 63 | 6b 73 29 20 22 60 66 89 |#[(nclic|ks) "`f.|
|00000c60| 18 85 09 00 08 7a 19 5c | 6e 83 14 00 0b 53 c4 a6 |.....z.\|n....S..|
|00000c70| 54 13 0b c5 55 83 1e 00 | c6 82 57 00 0b c7 55 83 |T...U...|..W...U.|
|00000c80| 28 00 c8 82 57 00 0b c4 | 59 83 32 00 c9 82 57 00 |(...W...|Y.2...W.|
|00000c90| 09 ca 3e 83 3c 00 cb 82 | 57 00 08 cc 3e 83 46 00 |..>.<...|W...>.F.|
|00000ca0| cd 82 57 00 09 ce 3d 83 | 50 00 cf 82 57 00 09 d0 |..W...=.|P...W...|
|00000cb0| 3d 85 57 00 d1 2a 87 22 | 20 5b 6e 65 78 74 2d 63 |=.W..*."| [next-c|
|00000cc0| 68 61 72 20 63 68 61 72 | 2d 73 79 6e 74 61 78 20 |har char|-syntax |
|00000cd0| 6d 6f 75 73 65 2d 73 65 | 6c 2d 63 79 63 6c 65 2d |mouse-se|l-cycle-|
|00000ce0| 63 6c 69 63 6b 73 20 6e | 63 6c 69 63 6b 73 20 34 |clicks n|clicks 4|
|00000cf0| 20 31 20 6e 69 6c 20 33 | 20 6c 69 6e 65 20 70 61 | 1 nil 3| line pa|
|00000d00| 72 61 67 72 61 70 68 20 | 28 34 30 20 34 31 20 33 |ragraph |(40 41 3|
|00000d10| 34 20 33 39 29 20 73 65 | 78 70 20 28 33 32 20 39 |4 39) se|xp (32 9|
|00000d20| 20 31 30 29 20 77 68 69 | 74 65 73 70 61 63 65 20 | 10) whi|tespace |
|00000d30| 39 35 20 73 79 6d 62 6f | 6c 20 31 31 39 20 77 6f |95 symbo|l 119 wo|
|00000d40| 72 64 5d 20 33 20 28 23 | 24 20 2e 20 32 35 38 36 |rd] 3 (#|$ . 2586|
|00000d50| 29 5d 29 0a 23 40 33 39 | 20 53 65 74 20 74 68 65 |)]).#@39| Set the|
|00000d60| 20 73 70 65 63 69 66 69 | 65 64 20 53 45 4c 45 43 | specifi|ed SELEC|
|00000d70| 54 49 4f 4e 20 74 6f 20 | 56 41 4c 55 45 2e 1f 0a |TION to |VALUE...|
|00000d80| 28 64 65 66 61 6c 69 61 | 73 20 27 6d 6f 75 73 65 |(defalia|s 'mouse|
|00000d90| 2d 73 65 6c 2d 73 65 74 | 2d 73 65 6c 65 63 74 69 |-sel-set|-selecti|
|00000da0| 6f 6e 20 23 5b 28 73 65 | 6c 65 63 74 69 6f 6e 20 |on #[(se|lection |
|00000db0| 76 61 6c 75 65 29 20 22 | 08 83 09 00 08 09 5c 6e |value) "|......\n|
|00000dc0| 5c 22 87 c3 c4 09 5c 6e | 23 87 22 20 5b 6d 6f 75 |\"....\n|#." [mou|
|00000dd0| 73 65 2d 73 65 6c 2d 73 | 65 74 2d 73 65 6c 65 63 |se-sel-s|et-selec|
|00000de0| 74 69 6f 6e 2d 66 75 6e | 63 74 69 6f 6e 20 73 65 |tion-fun|ction se|
|00000df0| 6c 65 63 74 69 6f 6e 20 | 76 61 6c 75 65 20 70 75 |lection |value pu|
|00000e00| 74 20 6d 6f 75 73 65 2d | 73 65 6c 2d 69 6e 74 65 |t mouse-|sel-inte|
|00000e10| 72 6e 61 6c 2d 73 65 6c | 65 63 74 69 6f 6e 5d 20 |rnal-sel|ection] |
|00000e20| 34 20 28 23 24 20 2e 20 | 33 34 31 37 29 5d 29 0a |4 (#$ . |3417)]).|
|00000e30| 23 40 34 33 20 47 65 74 | 20 74 68 65 20 76 61 6c |#@43 Get| the val|
|00000e40| 75 65 20 6f 66 20 74 68 | 65 20 73 70 65 63 69 66 |ue of th|e specif|
|00000e50| 69 65 64 20 53 45 4c 45 | 43 54 49 4f 4e 2e 1f 0a |ied SELE|CTION...|
|00000e60| 28 64 65 66 61 6c 69 61 | 73 20 27 6d 6f 75 73 65 |(defalia|s 'mouse|
|00000e70| 2d 73 65 6c 2d 67 65 74 | 2d 73 65 6c 65 63 74 69 |-sel-get|-selecti|
|00000e80| 6f 6e 20 23 5b 28 73 65 | 6c 65 63 74 69 6f 6e 29 |on #[(se|lection)|
|00000e90| 20 22 08 83 08 00 08 09 | 21 87 c2 09 4e 87 22 20 | "......|!...N." |
|00000ea0| 5b 6d 6f 75 73 65 2d 73 | 65 6c 2d 67 65 74 2d 73 |[mouse-s|el-get-s|
|00000eb0| 65 6c 65 63 74 69 6f 6e | 2d 66 75 6e 63 74 69 6f |election|-functio|
|00000ec0| 6e 20 73 65 6c 65 63 74 | 69 6f 6e 20 6d 6f 75 73 |n select|ion mous|
|00000ed0| 65 2d 73 65 6c 2d 69 6e | 74 65 72 6e 61 6c 2d 73 |e-sel-in|ternal-s|
|00000ee0| 65 6c 65 63 74 69 6f 6e | 5d 20 32 20 28 23 24 20 |election|] 2 (#$ |
|00000ef0| 2e 20 33 36 33 37 29 5d | 29 0a 23 40 34 34 20 52 |. 3637)]|).#@44 R|
|00000f00| 65 74 75 72 6e 20 6f 76 | 65 72 6c 61 79 20 63 6f |eturn ov|erlay co|
|00000f10| 72 72 65 73 70 6f 6e 64 | 69 6e 67 20 74 6f 20 53 |rrespond|ing to S|
|00000f20| 45 4c 45 43 54 49 4f 4e | 2e 1f 0a 28 64 65 66 61 |ELECTION|...(defa|
|00000f30| 6c 69 61 73 20 27 6d 6f | 75 73 65 2d 73 65 6c 2d |lias 'mo|use-sel-|
|00000f40| 73 65 6c 65 63 74 69 6f | 6e 2d 6f 76 65 72 6c 61 |selectio|n-overla|
|00000f50| 79 20 23 5b 28 73 65 6c | 65 63 74 69 6f 6e 29 20 |y #[(sel|ection) |
|00000f60| 22 c0 09 5c 6e 5c 22 41 | 40 89 1b 84 10 00 c4 c5 |"..\n\"A|@.......|
|00000f70| 09 5c 22 88 0b 4a 29 87 | 22 20 5b 61 73 73 6f 63 |.\"..J).|" [assoc|
|00000f80| 20 73 65 6c 65 63 74 69 | 6f 6e 20 6d 6f 75 73 65 | selecti|on mouse|
|00000f90| 2d 73 65 6c 2d 73 65 6c | 65 63 74 69 6f 6e 2d 61 |-sel-sel|ection-a|
|00000fa0| 6c 69 73 74 20 73 79 6d | 62 6f 6c 20 65 72 72 6f |list sym|bol erro|
|00000fb0| 72 20 22 4e 6f 20 6f 76 | 65 72 6c 61 79 20 63 6f |r "No ov|erlay co|
|00000fc0| 72 72 65 73 70 6f 6e 64 | 69 6e 67 20 74 6f 20 25 |rrespond|ing to %|
|00000fd0| 73 20 73 65 6c 65 63 74 | 69 6f 6e 22 5d 20 34 20 |s select|ion"] 4 |
|00000fe0| 28 23 24 20 2e 20 33 38 | 33 39 29 5d 29 0a 23 40 |(#$ . 38|39)]).#@|
|00000ff0| 34 34 20 52 65 74 75 72 | 6e 20 6f 76 65 72 6c 61 |44 Retur|n overla|
|00001000| 79 20 63 6f 72 72 65 73 | 70 6f 6e 64 69 6e 67 20 |y corres|ponding |
|00001010| 74 6f 20 53 45 4c 45 43 | 54 49 4f 4e 2e 1f 0a 28 |to SELEC|TION...(|
|00001020| 64 65 66 61 6c 69 61 73 | 20 27 6d 6f 75 73 65 2d |defalias| 'mouse-|
|00001030| 73 65 6c 2d 73 65 6c 65 | 63 74 69 6f 6e 2d 74 68 |sel-sele|ction-th|
|00001040| 69 6e 67 20 23 5b 28 73 | 65 6c 65 63 74 69 6f 6e |ing #[(s|election|
|00001050| 29 20 22 c0 c1 5c 6e 0b | 5c 22 38 89 1c 84 10 00 |) "..\n.|\"8.....|
|00001060| c5 c6 5c 6e 5c 22 88 5c | 66 29 87 22 20 5b 32 20 |..\n\".\|f)." [2 |
|00001070| 61 73 73 6f 63 20 73 65 | 6c 65 63 74 69 6f 6e 20 |assoc se|lection |
|00001080| 6d 6f 75 73 65 2d 73 65 | 6c 2d 73 65 6c 65 63 74 |mouse-se|l-select|
|00001090| 69 6f 6e 2d 61 6c 69 73 | 74 20 73 79 6d 62 6f 6c |ion-alis|t symbol|
|000010a0| 20 65 72 72 6f 72 20 22 | 4e 6f 20 73 79 6d 62 6f | error "|No symbo|
|000010b0| 6c 20 63 6f 72 72 65 73 | 70 6f 6e 64 69 6e 67 20 |l corres|ponding |
|000010c0| 74 6f 20 25 73 20 73 65 | 6c 65 63 74 69 6f 6e 22 |to %s se|lection"|
|000010d0| 5d 20 35 20 28 23 24 20 | 2e 20 34 30 38 33 29 5d |] 5 (#$ |. 4083)]|
|000010e0| 29 0a 23 40 32 32 35 20 | 43 6f 6e 76 65 72 74 20 |).#@225 |Convert |
|000010f0| 72 65 67 69 6f 6e 20 74 | 6f 20 50 52 49 4d 41 52 |region t|o PRIMAR|
|00001100| 59 20 6f 76 65 72 6c 61 | 79 20 61 6e 64 20 64 65 |Y overla|y and de|
|00001110| 61 63 74 69 76 61 74 65 | 20 72 65 67 69 6f 6e 2e |activate| region.|
|00001120| 0a 41 72 67 75 6d 65 6e | 74 20 4f 52 49 47 2d 57 |.Argumen|t ORIG-W|
|00001130| 49 4e 44 4f 57 20 73 70 | 65 63 69 66 69 65 73 20 |INDOW sp|ecifies |
|00001140| 74 68 65 20 77 69 6e 64 | 6f 77 20 74 68 65 20 63 |the wind|ow the c|
|00001150| 75 72 73 6f 72 20 77 61 | 73 20 69 6e 20 77 68 65 |ursor wa|s in whe|
|00001160| 6e 20 74 68 65 20 0a 6f | 72 69 67 69 6e 61 74 69 |n the .o|riginati|
|00001170| 6e 67 20 63 6f 6d 6d 61 | 6e 64 20 77 61 73 20 69 |ng comma|nd was i|
|00001180| 73 73 75 65 64 2c 20 61 | 6e 64 20 69 73 20 75 73 |ssued, a|nd is us|
|00001190| 65 64 20 74 6f 20 64 65 | 74 65 72 6d 69 6e 65 20 |ed to de|termine |
|000011a0| 77 68 65 74 68 65 72 20 | 74 68 65 20 0a 72 65 67 |whether |the .reg|
|000011b0| 69 6f 6e 20 77 61 73 20 | 76 69 73 69 62 6c 65 20 |ion was |visible |
|000011c0| 6f 72 20 6e 6f 74 2e 1f | 0a 28 64 65 66 61 6c 69 |or not..|.(defali|
|000011d0| 61 73 20 27 6d 6f 75 73 | 65 2d 73 65 6c 2d 72 65 |as 'mous|e-sel-re|
|000011e0| 67 69 6f 6e 2d 74 6f 2d | 70 72 69 6d 61 72 79 20 |gion-to-|primary |
|000011f0| 23 5b 28 6f 72 69 67 2d | 77 69 6e 64 6f 77 29 20 |#[(orig-|window) |
|00001200| 22 08 85 3e 00 c1 c2 21 | 1b 5c 66 83 24 00 0d 84 |"..>...!|.\f.$...|
|00001210| 18 00 0e 06 c7 20 3d 83 | 24 00 c8 0b c9 20 ca 20 |..... =.|$.... . |
|00001220| 70 24 88 82 3a 00 0e 06 | c7 20 3d 83 36 00 c8 0b |p$..:...|. =.6...|
|00001230| 60 60 70 24 88 82 3a 00 | cb 0b 21 88 cc 89 14 29 |``p$..:.|..!....)|
|00001240| 87 22 20 5b 74 72 61 6e | 73 69 65 6e 74 2d 6d 61 |." [tran|sient-ma|
|00001250| 72 6b 2d 6d 6f 64 65 20 | 6d 6f 75 73 65 2d 73 65 |rk-mode |mouse-se|
|00001260| 6c 2d 73 65 6c 65 63 74 | 69 6f 6e 2d 6f 76 65 72 |l-select|ion-over|
|00001270| 6c 61 79 20 50 52 49 4d | 41 52 59 20 6f 76 65 72 |lay PRIM|ARY over|
|00001280| 6c 61 79 20 6d 61 72 6b | 2d 61 63 74 69 76 65 20 |lay mark|-active |
|00001290| 68 69 67 68 6c 69 67 68 | 74 2d 6e 6f 6e 73 65 6c |highligh|t-nonsel|
|000012a0| 65 63 74 65 64 2d 77 69 | 6e 64 6f 77 73 20 6f 72 |ected-wi|ndows or|
|000012b0| 69 67 2d 77 69 6e 64 6f | 77 20 73 65 6c 65 63 74 |ig-windo|w select|
|000012c0| 65 64 2d 77 69 6e 64 6f | 77 20 6d 6f 76 65 2d 6f |ed-windo|w move-o|
|000012d0| 76 65 72 6c 61 79 20 72 | 65 67 69 6f 6e 2d 62 65 |verlay r|egion-be|
|000012e0| 67 69 6e 6e 69 6e 67 20 | 72 65 67 69 6f 6e 2d 65 |ginning |region-e|
|000012f0| 6e 64 20 64 65 6c 65 74 | 65 2d 6f 76 65 72 6c 61 |nd delet|e-overla|
|00001300| 79 20 6e 69 6c 5d 20 35 | 20 28 23 24 20 2e 20 34 |y nil] 5| (#$ . 4|
|00001310| 33 32 38 29 5d 29 0a 23 | 40 32 30 35 20 43 6f 6e |328)]).#|@205 Con|
|00001320| 76 65 72 74 20 50 52 49 | 4d 41 52 59 20 6f 76 65 |vert PRI|MARY ove|
|00001330| 72 6c 61 79 20 74 6f 20 | 72 65 67 69 6f 6e 2e 0a |rlay to |region..|
|00001340| 4f 70 74 69 6f 6e 61 6c | 20 61 72 67 75 6d 65 6e |Optional| argumen|
|00001350| 74 20 44 49 52 45 43 54 | 49 4f 4e 20 73 70 65 63 |t DIRECT|ION spec|
|00001360| 69 66 69 65 73 20 74 68 | 65 20 6d 6f 75 73 65 20 |ifies th|e mouse |
|00001370| 64 72 61 67 20 64 69 72 | 65 63 74 69 6f 6e 3a 20 |drag dir|ection: |
|00001380| 61 20 76 61 6c 75 65 20 | 6f 66 0a 31 20 69 6e 64 |a value |of.1 ind|
|00001390| 69 63 61 74 65 73 20 74 | 68 61 74 20 74 68 65 20 |icates t|hat the |
|000013a0| 6d 6f 75 73 65 20 77 61 | 73 20 64 72 61 67 67 65 |mouse wa|s dragge|
|000013b0| 64 20 6c 65 66 74 2d 74 | 6f 2d 72 69 67 68 74 2c |d left-t|o-right,|
|000013c0| 20 6f 74 68 65 72 77 69 | 73 65 20 69 74 20 77 61 | otherwi|se it wa|
|000013d0| 73 0a 64 72 61 67 67 65 | 64 20 72 69 67 68 74 2d |s.dragge|d right-|
|000013e0| 74 6f 2d 6c 65 66 74 2e | 1f 0a 28 64 65 66 61 6c |to-left.|..(defal|
|000013f0| 69 61 73 20 27 6d 6f 75 | 73 65 2d 73 65 6c 2d 70 |ias 'mou|se-sel-p|
|00001400| 72 69 6d 61 72 79 2d 74 | 6f 2d 72 65 67 69 6f 6e |rimary-t|o-region|
|00001410| 20 23 5b 28 26 6f 70 74 | 69 6f 6e 61 6c 20 64 69 | #[(&opt|ional di|
|00001420| 72 65 63 74 69 6f 6e 29 | 20 22 c0 c1 21 1a c3 5c |rection)| "..!..\|
|00001430| 6e 21 1c c5 5c 6e 21 1e | 06 5c 66 0e 06 3d 83 2a |n!..\n!.|.\f..=.*|
|00001440| 00 5c 66 83 1b 00 5c 66 | 62 88 0e 07 83 4d 00 c8 |.\f...\f|b....M..|
|00001450| 16 09 ca cb 21 88 82 4d | 00 0e 5c 66 83 43 00 0e |....!..M|..\f.C..|
|00001460| 0d ce 3d 83 43 00 0e 06 | 62 88 cf 5c 66 d0 d1 23 |..=.C...|b..\f..#|
|00001470| 88 82 4d 00 5c 66 62 88 | cf 0e 06 d0 d1 23 88 0e |..M.\fb.|.....#..|
|00001480| 07 85 55 00 d2 5c 6e 21 | 2b 87 22 20 5b 6d 6f 75 |..U..\n!|+." [mou|
|00001490| 73 65 2d 73 65 6c 2d 73 | 65 6c 65 63 74 69 6f 6e |se-sel-s|election|
|000014a0| 2d 6f 76 65 72 6c 61 79 | 20 50 52 49 4d 41 52 59 |-overlay| PRIMARY|
|000014b0| 20 6f 76 65 72 6c 61 79 | 20 6f 76 65 72 6c 61 79 | overlay| overlay|
|000014c0| 2d 73 74 61 72 74 20 73 | 74 61 72 74 20 6f 76 65 |-start s|tart ove|
|000014d0| 72 6c 61 79 2d 65 6e 64 | 20 65 6e 64 20 74 72 61 |rlay-end| end tra|
|000014e0| 6e 73 69 65 6e 74 2d 6d | 61 72 6b 2d 6d 6f 64 65 |nsient-m|ark-mode|
|000014f0| 20 6e 69 6c 20 6d 61 72 | 6b 2d 61 63 74 69 76 65 | nil mar|k-active|
|00001500| 20 72 75 6e 2d 68 6f 6f | 6b 73 20 64 65 61 63 74 | run-hoo|ks deact|
|00001510| 69 76 61 74 65 2d 6d 61 | 72 6b 2d 68 6f 6f 6b 20 |ivate-ma|rk-hook |
|00001520| 6d 6f 75 73 65 2d 73 65 | 6c 2d 6c 65 61 76 65 2d |mouse-se|l-leave-|
|00001530| 70 6f 69 6e 74 2d 6e 65 | 61 72 2d 6d 6f 75 73 65 |point-ne|ar-mouse|
|00001540| 20 64 69 72 65 63 74 69 | 6f 6e 20 31 20 70 75 73 | directi|on 1 pus|
|00001550| 68 2d 6d 61 72 6b 20 6e | 6f 6d 73 67 20 61 63 74 |h-mark n|omsg act|
|00001560| 69 76 65 20 64 65 6c 65 | 74 65 2d 6f 76 65 72 6c |ive dele|te-overl|
|00001570| 61 79 5d 20 34 20 28 23 | 24 20 2e 20 34 38 39 33 |ay] 4 (#|$ . 4893|
|00001580| 29 5d 29 0a 23 40 31 32 | 34 20 45 76 61 6c 75 61 |)]).#@12|4 Evalua|
|00001590| 74 65 20 66 6f 72 6d 73 | 20 61 74 20 6d 6f 75 73 |te forms| at mous|
|000015a0| 65 20 70 6f 73 69 74 69 | 6f 6e 2e 0a 4d 6f 76 65 |e positi|on..Move|
|000015b0| 20 74 6f 20 74 68 65 20 | 65 6e 64 20 70 6f 73 69 | to the |end posi|
|000015c0| 74 69 6f 6e 20 6f 66 20 | 45 56 45 4e 54 2c 20 65 |tion of |EVENT, e|
|000015d0| 78 65 63 75 74 65 20 46 | 4f 52 4d 53 2c 20 61 6e |xecute F|ORMS, an|
|000015e0| 64 20 72 65 73 74 6f 72 | 65 20 6f 72 69 67 69 6e |d restor|e origin|
|000015f0| 61 6c 0a 70 6f 69 6e 74 | 20 61 6e 64 20 77 69 6e |al.point| and win|
|00001600| 64 6f 77 2e 1f 0a 28 64 | 65 66 61 6c 69 61 73 20 |dow...(d|efalias |
|00001610| 27 6d 6f 75 73 65 2d 73 | 65 6c 2d 65 76 61 6c 2d |'mouse-s|el-eval-|
|00001620| 61 74 2d 65 76 65 6e 74 | 2d 65 6e 64 20 27 28 6d |at-event|-end '(m|
|00001630| 61 63 72 6f 20 2e 20 23 | 5b 28 65 76 65 6e 74 20 |acro . #|[(event |
|00001640| 26 72 65 73 74 20 66 6f | 72 6d 73 29 20 22 c0 c1 |&rest fo|rms) "..|
|00001650| c2 0b 44 44 43 c4 c1 c5 | 0b 44 45 c6 c0 c7 c8 c9 |..DDC...|.DE.....|
|00001660| ca cb cc cd 0e 0e 42 cf | 42 42 af 07 af 05 87 22 |......B.|BB....."|
|00001670| 20 5b 6c 65 74 20 70 6f | 73 6e 20 65 76 65 6e 74 | [let po|sn event|
|00001680| 2d 65 6e 64 20 65 76 65 | 6e 74 20 69 66 20 6d 6f |-end eve|nt if mo|
|00001690| 75 73 65 2d 6d 69 6e 69 | 62 75 66 66 65 72 2d 63 |use-mini|buffer-c|
|000016a0| 68 65 63 6b 20 28 69 66 | 20 28 61 6e 64 20 70 6f |heck (if| (and po|
|000016b0| 73 6e 20 28 6e 6f 74 20 | 28 77 69 6e 64 6f 77 70 |sn (not |(windowp|
|000016c0| 20 28 70 6f 73 6e 2d 77 | 69 6e 64 6f 77 20 70 6f | (posn-w|indow po|
|000016d0| 73 6e 29 29 29 29 20 28 | 65 72 72 6f 72 20 22 43 |sn)))) (|error "C|
|000016e0| 75 72 73 6f 72 20 6e 6f | 74 20 69 6e 20 74 65 78 |ursor no|t in tex|
|000016f0| 74 20 61 72 65 61 20 6f | 66 20 77 69 6e 64 6f 77 |t area o|f window|
|00001700| 22 29 29 20 28 6f 72 69 | 67 2d 77 69 6e 64 6f 77 |")) (ori|g-window|
|00001710| 20 6f 72 69 67 2d 70 6f | 69 6e 74 2d 6d 61 72 6b | orig-po|int-mark|
|00001720| 65 72 29 20 28 73 65 74 | 71 20 6f 72 69 67 2d 77 |er) (set|q orig-w|
|00001730| 69 6e 64 6f 77 20 28 73 | 65 6c 65 63 74 65 64 2d |indow (s|elected-|
|00001740| 77 69 6e 64 6f 77 29 29 | 20 28 69 66 20 70 6f 73 |window))| (if pos|
|00001750| 6e 20 28 73 65 6c 65 63 | 74 2d 77 69 6e 64 6f 77 |n (selec|t-window|
|00001760| 20 28 70 6f 73 6e 2d 77 | 69 6e 64 6f 77 20 70 6f | (posn-w|indow po|
|00001770| 73 6e 29 29 29 20 28 73 | 65 74 71 20 6f 72 69 67 |sn))) (s|etq orig|
|00001780| 2d 70 6f 69 6e 74 2d 6d | 61 72 6b 65 72 20 28 70 |-point-m|arker (p|
|00001790| 6f 69 6e 74 2d 6d 61 72 | 6b 65 72 29 29 20 28 69 |oint-mar|ker)) (i|
|000017a0| 66 20 28 61 6e 64 20 70 | 6f 73 6e 20 28 6e 75 6d |f (and p|osn (num|
|000017b0| 62 65 72 70 20 28 70 6f | 73 6e 2d 70 6f 69 6e 74 |berp (po|sn-point|
|000017c0| 20 70 6f 73 6e 29 29 29 | 20 28 67 6f 74 6f 2d 63 | posn)))| (goto-c|
|000017d0| 68 61 72 20 28 70 6f 73 | 6e 2d 70 6f 69 6e 74 20 |har (pos|n-point |
|000017e0| 70 6f 73 6e 29 29 29 20 | 75 6e 77 69 6e 64 2d 70 |posn))) |unwind-p|
|000017f0| 72 6f 74 65 63 74 20 70 | 72 6f 67 6e 20 66 6f 72 |rotect p|rogn for|
|00001800| 6d 73 20 28 28 67 6f 74 | 6f 2d 63 68 61 72 20 28 |ms ((got|o-char (|
|00001810| 6d 61 72 6b 65 72 2d 70 | 6f 73 69 74 69 6f 6e 20 |marker-p|osition |
|00001820| 6f 72 69 67 2d 70 6f 69 | 6e 74 2d 6d 61 72 6b 65 |orig-poi|nt-marke|
|00001830| 72 29 29 20 28 6d 6f 76 | 65 2d 6d 61 72 6b 65 72 |r)) (mov|e-marker|
|00001840| 20 6f 72 69 67 2d 70 6f | 69 6e 74 2d 6d 61 72 6b | orig-po|int-mark|
|00001850| 65 72 20 6e 69 6c 29 20 | 28 73 65 6c 65 63 74 2d |er nil) |(select-|
|00001860| 77 69 6e 64 6f 77 20 6f | 72 69 67 2d 77 69 6e 64 |window o|rig-wind|
|00001870| 6f 77 29 29 5d 20 31 33 | 20 28 23 24 20 2e 20 35 |ow))] 13| (#$ . 5|
|00001880| 35 31 34 29 5d 29 29 0a | 28 70 75 74 20 28 71 75 |514)])).|(put (qu|
|00001890| 6f 74 65 20 6d 6f 75 73 | 65 2d 73 65 6c 2d 65 76 |ote mous|e-sel-ev|
|000018a0| 61 6c 2d 61 74 2d 65 76 | 65 6e 74 2d 65 6e 64 29 |al-at-ev|ent-end)|
|000018b0| 20 28 71 75 6f 74 65 20 | 6c 69 73 70 2d 69 6e 64 | (quote |lisp-ind|
|000018c0| 65 6e 74 2d 68 6f 6f 6b | 29 20 31 29 0a 23 40 33 |ent-hook|) 1).#@3|
|000018d0| 39 32 20 53 65 74 20 72 | 65 67 69 6f 6e 2f 73 65 |92 Set r|egion/se|
|000018e0| 6c 65 63 74 69 6f 6e 20 | 75 73 69 6e 67 20 74 68 |lection |using th|
|000018f0| 65 20 6d 6f 75 73 65 2e | 0a 0a 43 6c 69 63 6b 20 |e mouse.|..Click |
|00001900| 73 65 74 73 20 70 6f 69 | 6e 74 20 26 20 6d 61 72 |sets poi|nt & mar|
|00001910| 6b 20 74 6f 20 63 6c 69 | 63 6b 20 70 6f 73 69 74 |k to cli|ck posit|
|00001920| 69 6f 6e 2e 0a 44 72 61 | 67 67 69 6e 67 20 65 78 |ion..Dra|gging ex|
|00001930| 74 65 6e 64 73 20 72 65 | 67 69 6f 6e 2f 73 65 6c |tends re|gion/sel|
|00001940| 65 63 74 69 6f 6e 2e 0a | 0a 4d 75 6c 74 69 2d 63 |ection..|.Multi-c|
|00001950| 6c 69 63 6b 69 6e 67 20 | 73 65 6c 65 63 74 73 20 |licking |selects |
|00001960| 77 6f 72 64 2f 6c 69 6e | 65 73 2f 70 61 72 61 67 |word/lin|es/parag|
|00001970| 72 61 70 68 73 2c 20 61 | 73 20 64 65 74 65 72 6d |raphs, a|s determ|
|00001980| 69 6e 65 64 20 62 79 20 | 0a 27 6d 6f 75 73 65 2d |ined by |.'mouse-|
|00001990| 73 65 6c 2d 64 65 74 65 | 72 6d 69 6e 65 2d 73 65 |sel-dete|rmine-se|
|000019a0| 6c 65 63 74 69 6f 6e 2d | 74 68 69 6e 67 2e 0a 0a |lection-|thing...|
|000019b0| 43 6c 69 63 6b 69 6e 67 | 20 6d 6f 75 73 65 2d 32 |Clicking| mouse-2|
|000019c0| 20 77 68 69 6c 65 20 73 | 65 6c 65 63 74 69 6e 67 | while s|electing|
|000019d0| 20 63 6f 70 69 65 73 20 | 73 65 6c 65 63 74 65 64 | copies |selected|
|000019e0| 20 74 65 78 74 20 74 6f | 20 74 68 65 20 6b 69 6c | text to| the kil|
|000019f0| 6c 2d 72 69 6e 67 2e 0a | 43 6c 69 63 6b 69 6e 67 |l-ring..|Clicking|
|00001a00| 20 6d 6f 75 73 65 2d 31 | 20 6f 72 20 6d 6f 75 73 | mouse-1| or mous|
|00001a10| 65 2d 33 20 6b 69 6c 6c | 73 20 74 68 65 20 73 65 |e-3 kill|s the se|
|00001a20| 6c 65 63 74 65 64 20 74 | 65 78 74 2e 0a 0a 54 68 |lected t|ext...Th|
|00001a30| 69 73 20 73 68 6f 75 6c | 64 20 62 65 20 62 6f 75 |is shoul|d be bou|
|00001a40| 6e 64 20 74 6f 20 61 20 | 64 6f 77 6e 2d 6d 6f 75 |nd to a |down-mou|
|00001a50| 73 65 20 65 76 65 6e 74 | 2e 1f 0a 28 64 65 66 61 |se event|...(defa|
|00001a60| 6c 69 61 73 20 27 6d 6f | 75 73 65 2d 73 65 6c 65 |lias 'mo|use-sele|
|00001a70| 63 74 20 23 5b 28 65 76 | 65 6e 74 29 20 22 c0 19 |ct #[(ev|ent) "..|
|00001a80| c2 8e c3 c4 0d 5c 22 89 | 11 2a 87 22 20 5b 6e 69 |.....\".|.*." [ni|
|00001a90| 6c 20 64 69 72 65 63 74 | 69 6f 6e 20 28 28 6d 6f |l direct|ion ((mo|
|00001aa0| 75 73 65 2d 73 65 6c 2d | 70 72 69 6d 61 72 79 2d |use-sel-|primary-|
|00001ab0| 74 6f 2d 72 65 67 69 6f | 6e 20 64 69 72 65 63 74 |to-regio|n direct|
|00001ac0| 69 6f 6e 29 29 20 6d 6f | 75 73 65 2d 73 65 6c 65 |ion)) mo|use-sele|
|00001ad0| 63 74 2d 69 6e 74 65 72 | 6e 61 6c 20 50 52 49 4d |ct-inter|nal PRIM|
|00001ae0| 41 52 59 20 65 76 65 6e | 74 5d 20 33 20 28 23 24 |ARY even|t] 3 (#$|
|00001af0| 20 2e 20 36 33 35 35 29 | 20 22 40 65 22 5d 29 0a | . 6355)| "@e"]).|
|00001b00| 23 40 34 32 36 20 53 65 | 74 20 73 65 63 6f 6e 64 |#@426 Se|t second|
|00001b10| 61 72 79 20 73 65 6c 65 | 63 74 69 6f 6e 20 75 73 |ary sele|ction us|
|00001b20| 69 6e 67 20 74 68 65 20 | 6d 6f 75 73 65 2e 0a 0a |ing the |mouse...|
|00001b30| 43 6c 69 63 6b 20 73 65 | 74 73 20 74 68 65 20 73 |Click se|ts the s|
|00001b40| 74 61 72 74 20 6f 66 20 | 74 68 65 20 73 65 63 6f |tart of |the seco|
|00001b50| 6e 64 61 72 79 20 73 65 | 6c 65 63 74 69 6f 6e 20 |ndary se|lection |
|00001b60| 74 6f 20 63 6c 69 63 6b | 20 70 6f 73 69 74 69 6f |to click| positio|
|00001b70| 6e 2e 0a 44 72 61 67 67 | 69 6e 67 20 65 78 74 65 |n..Dragg|ing exte|
|00001b80| 6e 64 73 20 74 68 65 20 | 73 65 63 6f 6e 64 61 72 |nds the |secondar|
|00001b90| 79 20 73 65 6c 65 63 74 | 69 6f 6e 2e 0a 0a 4d 75 |y select|ion...Mu|
|00001ba0| 6c 74 69 2d 63 6c 69 63 | 6b 69 6e 67 20 73 65 6c |lti-clic|king sel|
|00001bb0| 65 63 74 73 20 77 6f 72 | 64 2f 6c 69 6e 65 73 2f |ects wor|d/lines/|
|00001bc0| 70 61 72 61 67 72 61 70 | 68 73 2c 20 61 73 20 64 |paragrap|hs, as d|
|00001bd0| 65 74 65 72 6d 69 6e 65 | 64 20 62 79 20 0a 27 6d |etermine|d by .'m|
|00001be0| 6f 75 73 65 2d 73 65 6c | 2d 64 65 74 65 72 6d 69 |ouse-sel|-determi|
|00001bf0| 6e 65 2d 73 65 6c 65 63 | 74 69 6f 6e 2d 74 68 69 |ne-selec|tion-thi|
|00001c00| 6e 67 2e 0a 0a 43 6c 69 | 63 6b 69 6e 67 20 6d 6f |ng...Cli|cking mo|
|00001c10| 75 73 65 2d 32 20 77 68 | 69 6c 65 20 73 65 6c 65 |use-2 wh|ile sele|
|00001c20| 63 74 69 6e 67 20 63 6f | 70 69 65 73 20 73 65 6c |cting co|pies sel|
|00001c30| 65 63 74 65 64 20 74 65 | 78 74 20 74 6f 20 74 68 |ected te|xt to th|
|00001c40| 65 20 6b 69 6c 6c 2d 72 | 69 6e 67 2e 0a 43 6c 69 |e kill-r|ing..Cli|
|00001c50| 63 6b 69 6e 67 20 6d 6f | 75 73 65 2d 31 20 6f 72 |cking mo|use-1 or|
|00001c60| 20 6d 6f 75 73 65 2d 33 | 20 6b 69 6c 6c 73 20 74 | mouse-3| kills t|
|00001c70| 68 65 20 73 65 6c 65 63 | 74 65 64 20 74 65 78 74 |he selec|ted text|
|00001c80| 2e 0a 0a 54 68 69 73 20 | 73 68 6f 75 6c 64 20 62 |...This |should b|
|00001c90| 65 20 62 6f 75 6e 64 20 | 74 6f 20 61 20 64 6f 77 |e bound |to a dow|
|00001ca0| 6e 2d 6d 6f 75 73 65 20 | 65 76 65 6e 74 2e 1f 0a |n-mouse |event...|
|00001cb0| 28 64 65 66 61 6c 69 61 | 73 20 27 6d 6f 75 73 65 |(defalia|s 'mouse|
|00001cc0| 2d 73 65 6c 65 63 74 2d | 73 65 63 6f 6e 64 61 72 |-select-|secondar|
|00001cd0| 79 20 23 5b 28 65 76 65 | 6e 74 29 20 22 c0 c1 5c |y #[(eve|nt) "..\|
|00001ce0| 6e 5c 22 87 22 20 5b 6d | 6f 75 73 65 2d 73 65 6c |n\"." [m|ouse-sel|
|00001cf0| 65 63 74 2d 69 6e 74 65 | 72 6e 61 6c 20 53 45 43 |ect-inte|rnal SEC|
|00001d00| 4f 4e 44 41 52 59 20 65 | 76 65 6e 74 5d 20 33 20 |ONDARY e|vent] 3 |
|00001d10| 28 23 24 20 2e 20 36 39 | 31 38 29 20 22 65 22 5d |(#$ . 69|18) "e"]|
|00001d20| 29 0a 23 40 33 32 20 53 | 65 74 20 53 45 4c 45 43 |).#@32 S|et SELEC|
|00001d30| 54 49 4f 4e 20 75 73 69 | 6e 67 20 74 68 65 20 6d |TION usi|ng the m|
|00001d40| 6f 75 73 65 2e 1f 0a 28 | 64 65 66 61 6c 69 61 73 |ouse...(|defalias|
|00001d50| 20 27 6d 6f 75 73 65 2d | 73 65 6c 65 63 74 2d 69 | 'mouse-|select-i|
|00001d60| 6e 74 65 72 6e 61 6c 20 | 23 5b 28 73 65 6c 65 63 |nternal |#[(selec|
|00001d70| 74 69 6f 6e 20 65 76 65 | 6e 74 29 20 22 08 18 c1 |tion eve|nt) "...|
|00001d80| 08 38 3a 83 0d 00 c1 82 | 0e 00 c2 08 38 29 89 1b |.8:.....|....8)..|
|00001d90| 83 1a 00 c4 08 21 88 0b | 83 2d 00 c5 0b 89 1e 06 |.....!..|.-......|
|00001da0| 40 29 21 84 2d 00 c7 c8 | 21 88 c9 89 1e 5c 6e 1e |@)!.-...|!....\n.|
|00001db0| 0b cc 20 16 0b 0b 83 44 | 00 cd 0b 89 1e 06 40 29 |.. ....D|......@)|
|00001dc0| 21 88 ce 20 16 5c 6e 0b | 83 80 00 0b 89 1e 06 41 |!.. .\n.|.......A|
|00001dd0| 40 3a 83 5e 00 0e 06 41 | 40 40 82 62 00 0e 06 41 |@:.^...A|@@.b...A|
|00001de0| 40 29 a7 83 80 00 0b 89 | 1e 06 41 40 3a 83 79 00 |@)......|..A@:.y.|
|00001df0| 0e 06 41 40 40 82 7d 00 | 0e 06 41 40 29 62 88 cf |..A@@.}.|..A@)b..|
|00001e00| 8e d0 0e 11 21 d2 0e 11 | 21 1e 13 89 1e 14 d5 08 |....!...|!.......|
|00001e10| 18 c1 08 38 a8 83 9f 00 | c1 08 38 82 a0 00 c2 29 |...8....|..8....)|
|00001e20| 21 4c 88 d6 0e 14 4a 21 | 89 1e 17 83 be 00 d8 0e |!L....J!|........|
|00001e30| 13 0e 17 40 0e 17 41 70 | 24 88 82 c6 00 d8 0e 13 |...@..Ap|$.......|
|00001e40| 60 60 70 24 88 2b d9 0e | 11 21 2c 87 22 20 5b 65 |``p$.+..|.!,." [e|
|00001e50| 76 65 6e 74 20 32 20 31 | 20 70 6f 73 6e 20 6d 6f |vent 2 1| posn mo|
|00001e60| 75 73 65 2d 6d 69 6e 69 | 62 75 66 66 65 72 2d 63 |use-mini|buffer-c|
|00001e70| 68 65 63 6b 20 77 69 6e | 64 6f 77 70 20 70 6f 73 |heck win|dowp pos|
|00001e80| 69 74 69 6f 6e 20 65 72 | 72 6f 72 20 22 43 75 72 |ition er|ror "Cur|
|00001e90| 73 6f 72 20 6e 6f 74 20 | 69 6e 20 74 65 78 74 20 |sor not |in text |
|00001ea0| 61 72 65 61 20 6f 66 20 | 77 69 6e 64 6f 77 22 20 |area of |window" |
|00001eb0| 6e 69 6c 20 6f 72 69 67 | 2d 70 6f 69 6e 74 2d 6d |nil orig|-point-m|
|00001ec0| 61 72 6b 65 72 20 6f 72 | 69 67 2d 77 69 6e 64 6f |arker or|ig-windo|
|00001ed0| 77 20 73 65 6c 65 63 74 | 65 64 2d 77 69 6e 64 6f |w select|ed-windo|
|00001ee0| 77 20 73 65 6c 65 63 74 | 2d 77 69 6e 64 6f 77 20 |w select|-window |
|00001ef0| 70 6f 69 6e 74 2d 6d 61 | 72 6b 65 72 20 28 28 62 |point-ma|rker ((b|
|00001f00| 79 74 65 2d 63 6f 64 65 | 20 22 c0 09 21 62 88 09 |yte-code| "..!b..|
|00001f10| c2 89 93 88 c3 5c 66 21 | 87 22 20 5b 6d 61 72 6b |.....\f!|." [mark|
|00001f20| 65 72 2d 70 6f 73 69 74 | 69 6f 6e 20 6f 72 69 67 |er-posit|ion orig|
|00001f30| 2d 70 6f 69 6e 74 2d 6d | 61 72 6b 65 72 20 6e 69 |-point-m|arker ni|
|00001f40| 6c 20 73 65 6c 65 63 74 | 2d 77 69 6e 64 6f 77 20 |l select|-window |
|00001f50| 6f 72 69 67 2d 77 69 6e | 64 6f 77 5d 20 33 29 29 |orig-win|dow] 3))|
|00001f60| 20 6d 6f 75 73 65 2d 73 | 65 6c 2d 73 65 6c 65 63 | mouse-s|el-selec|
|00001f70| 74 69 6f 6e 2d 74 68 69 | 6e 67 20 73 65 6c 65 63 |tion-thi|ng selec|
|00001f80| 74 69 6f 6e 20 6d 6f 75 | 73 65 2d 73 65 6c 2d 73 |tion mou|se-sel-s|
|00001f90| 65 6c 65 63 74 69 6f 6e | 2d 6f 76 65 72 6c 61 79 |election|-overlay|
|00001fa0| 20 6f 76 65 72 6c 61 79 | 20 74 68 69 6e 67 2d 73 | overlay| thing-s|
|00001fb0| 79 6d 62 6f 6c 20 6d 6f | 75 73 65 2d 73 65 6c 2d |ymbol mo|use-sel-|
|00001fc0| 64 65 74 65 72 6d 69 6e | 65 2d 73 65 6c 65 63 74 |determin|e-select|
|00001fd0| 69 6f 6e 2d 74 68 69 6e | 67 20 62 6f 75 6e 64 73 |ion-thin|g bounds|
|00001fe0| 2d 6f 66 2d 74 68 69 6e | 67 2d 61 74 2d 70 6f 69 |-of-thin|g-at-poi|
|00001ff0| 6e 74 20 6f 62 6a 65 63 | 74 2d 62 6f 75 6e 64 73 |nt objec|t-bounds|
|00002000| 20 6d 6f 76 65 2d 6f 76 | 65 72 6c 61 79 20 6d 6f | move-ov|erlay mo|
|00002010| 75 73 65 2d 65 78 74 65 | 6e 64 2d 69 6e 74 65 72 |use-exte|nd-inter|
|00002020| 6e 61 6c 5d 20 36 20 28 | 23 24 20 2e 20 37 34 36 |nal] 6 (|#$ . 746|
|00002030| 33 29 5d 29 0a 23 40 34 | 32 20 45 78 74 65 6e 64 |3)]).#@4|2 Extend|
|00002040| 20 72 65 67 69 6f 6e 2f | 73 65 6c 65 63 74 69 6f | region/|selectio|
|00002050| 6e 20 75 73 69 6e 67 20 | 74 68 65 20 6d 6f 75 73 |n using |the mous|
|00002060| 65 2e 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 6d |e...(def|alias 'm|
|00002070| 6f 75 73 65 2d 65 78 74 | 65 6e 64 20 23 5b 28 65 |ouse-ext|end #[(e|
|00002080| 76 65 6e 74 29 20 22 c0 | 20 c1 1a 1b c4 0d 1d c6 |vent) ".| .......|
|00002090| 0d 38 3a 83 13 00 c6 82 | 14 00 c7 0d 38 29 89 1e |.8:.....|....8)..|
|000020a0| 08 40 29 21 88 c9 8e ca | 0b 21 88 cb cc 0d 5c 22 |.@)!....|.!....\"|
|000020b0| 89 12 2b 87 22 20 5b 73 | 65 6c 65 63 74 65 64 2d |..+." [s|elected-|
|000020c0| 77 69 6e 64 6f 77 20 6e | 69 6c 20 64 69 72 65 63 |window n|il direc|
|000020d0| 74 69 6f 6e 20 6f 72 69 | 67 2d 77 69 6e 64 6f 77 |tion ori|g-window|
|000020e0| 20 73 65 6c 65 63 74 2d | 77 69 6e 64 6f 77 20 65 | select-|window e|
|000020f0| 76 65 6e 74 20 32 20 31 | 20 70 6f 73 69 74 69 6f |vent 2 1| positio|
|00002100| 6e 20 28 28 6d 6f 75 73 | 65 2d 73 65 6c 2d 70 72 |n ((mous|e-sel-pr|
|00002110| 69 6d 61 72 79 2d 74 6f | 2d 72 65 67 69 6f 6e 20 |imary-to|-region |
|00002120| 64 69 72 65 63 74 69 6f | 6e 29 29 20 6d 6f 75 73 |directio|n)) mous|
|00002130| 65 2d 73 65 6c 2d 72 65 | 67 69 6f 6e 2d 74 6f 2d |e-sel-re|gion-to-|
|00002140| 70 72 69 6d 61 72 79 20 | 6d 6f 75 73 65 2d 65 78 |primary |mouse-ex|
|00002150| 74 65 6e 64 2d 69 6e 74 | 65 72 6e 61 6c 20 50 52 |tend-int|ernal PR|
|00002160| 49 4d 41 52 59 5d 20 34 | 20 28 23 24 20 2e 20 38 |IMARY] 4| (#$ . 8|
|00002170| 32 35 30 29 20 22 65 22 | 5d 29 0a 23 40 34 35 20 |250) "e"|]).#@45 |
|00002180| 45 78 74 65 6e 64 20 73 | 65 63 6f 6e 64 61 72 79 |Extend s|econdary|
|00002190| 20 73 65 6c 65 63 74 69 | 6f 6e 20 75 73 69 6e 67 | selecti|on using|
|000021a0| 20 74 68 65 20 6d 6f 75 | 73 65 2e 1f 0a 28 64 65 | the mou|se...(de|
|000021b0| 66 61 6c 69 61 73 20 27 | 6d 6f 75 73 65 2d 65 78 |falias '|mouse-ex|
|000021c0| 74 65 6e 64 2d 73 65 63 | 6f 6e 64 61 72 79 20 23 |tend-sec|ondary #|
|000021d0| 5b 28 65 76 65 6e 74 29 | 20 22 c0 8b 87 22 20 5b |[(event)| "..." [|
|000021e0| 28 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c0 c1 5c |((byte-c|ode "..\|
|000021f0| 6e 5c 22 87 22 20 5b 6d | 6f 75 73 65 2d 65 78 74 |n\"." [m|ouse-ext|
|00002200| 65 6e 64 2d 69 6e 74 65 | 72 6e 61 6c 20 53 45 43 |end-inte|rnal SEC|
|00002210| 4f 4e 44 41 52 59 20 65 | 76 65 6e 74 5d 20 33 29 |ONDARY e|vent] 3)|
|00002220| 29 5d 20 31 20 28 23 24 | 20 2e 20 38 35 37 36 29 |)] 1 (#$| . 8576)|
|00002230| 20 22 65 22 5d 29 0a 23 | 40 32 35 38 20 45 78 74 | "e"]).#|@258 Ext|
|00002240| 65 6e 64 20 73 70 65 63 | 69 66 69 65 64 20 53 45 |end spec|ified SE|
|00002250| 4c 45 43 54 49 4f 4e 20 | 75 73 69 6e 67 20 74 68 |LECTION |using th|
|00002260| 65 20 6d 6f 75 73 65 2e | 0a 54 72 61 63 6b 20 6d |e mouse.|.Track m|
|00002270| 6f 75 73 65 2d 6d 6f 74 | 69 6f 6e 20 65 76 65 6e |ouse-mot|ion even|
|00002280| 74 73 2c 20 61 64 6a 75 | 73 74 69 6e 67 20 74 68 |ts, adju|sting th|
|00002290| 65 20 53 45 4c 45 43 54 | 49 4f 4e 20 61 70 70 72 |e SELECT|ION appr|
|000022a0| 6f 70 72 69 61 74 65 6c | 79 2e 0a 4f 70 74 69 6f |opriatel|y..Optio|
|000022b0| 6e 61 6c 20 61 72 67 75 | 6d 65 6e 74 20 49 4e 49 |nal argu|ment INI|
|000022c0| 54 49 41 4c 2d 45 56 45 | 4e 54 20 73 70 65 63 69 |TIAL-EVE|NT speci|
|000022d0| 66 69 65 73 20 61 6e 20 | 69 6e 69 74 69 61 6c 20 |fies an |initial |
|000022e0| 64 6f 77 6e 2d 6d 6f 75 | 73 65 20 65 76 65 6e 74 |down-mou|se event|
|000022f0| 20 74 6f 20 0a 70 72 6f | 63 65 73 73 2e 20 0a 0a | to .pro|cess. ..|
|00002300| 53 65 65 20 64 6f 63 75 | 6d 65 6e 74 61 74 69 6f |See docu|mentatio|
|00002310| 6e 20 66 6f 72 20 6d 6f | 75 73 65 2d 73 65 6c 65 |n for mo|use-sele|
|00002320| 63 74 2d 69 6e 74 65 72 | 6e 61 6c 20 66 6f 72 20 |ct-inter|nal for |
|00002330| 6d 6f 72 65 20 64 65 74 | 61 69 6c 73 2e 1f 0a 28 |more det|ails...(|
|00002340| 64 65 66 61 6c 69 61 73 | 20 27 6d 6f 75 73 65 2d |defalias| 'mouse-|
|00002350| 65 78 74 65 6e 64 2d 69 | 6e 74 65 72 6e 61 6c 20 |extend-i|nternal |
|00002360| 23 5b 28 73 65 6c 65 63 | 74 69 6f 6e 20 26 6f 70 |#[(selec|tion &op|
|00002370| 74 69 6f 6e 61 6c 20 69 | 6e 69 74 69 61 6c 2d 65 |tional i|nitial-e|
|00002380| 76 65 6e 74 29 20 22 08 | 19 c2 09 38 3a 83 0d 00 |vent) ".|...8:...|
|00002390| c2 82 0e 00 c3 09 38 29 | 89 1c 83 1a 00 c5 08 21 |......8)|.......!|
|000023a0| 88 5c 66 83 2d 00 c6 5c | 66 89 1e 07 40 29 21 84 |.\f.-..\|f...@)!.|
|000023b0| 2d 00 c8 c9 21 88 ca 89 | 1e 0b 1e 5c 66 cd 20 16 |-...!...|...\f. .|
|000023c0| 5c 66 5c 66 83 44 00 ce | 5c 66 89 1e 07 40 29 21 |\f\f.D..|\f...@)!|
|000023d0| 88 cf 20 16 0b 5c 66 83 | 80 00 5c 66 89 1e 07 41 |.. ..\f.|..\f...A|
|000023e0| 40 3a 83 5e 00 0e 07 41 | 40 40 82 62 00 0e 07 41 |@:.^...A|@@.b...A|
|000023f0| 40 29 a7 83 80 00 5c 66 | 89 1e 07 41 40 3a 83 79 |@)....\f|...A@:.y|
|00002400| 00 0e 07 41 40 40 82 7d | 00 0e 07 41 40 29 62 88 |...A@@.}|...A@)b.|
|00002410| d0 8e d1 d2 d3 d4 20 21 | 5c 22 41 1e 15 d6 8e d7 |...... !|\"A.....|
|00002420| 0e 18 21 1e 19 da 0e 18 | 21 1e 1b cd 20 1e 5c 66 |..!.....|!... .\f|
|00002430| dc 0e 5c 66 21 1e 1d de | 0e 5c 66 21 41 40 1e 1f |..\f!...|.\f!A@..|
|00002440| e0 de 0e 5c 66 21 38 1e | 21 ca 1e 5c 22 e3 1e 24 |...\f!8.|!..\"..$|
|00002450| ca 1e 25 ca 1e 26 ca 1e | 27 ca 19 e8 0e 1b 21 70 |..%..&..|'.....!p|
|00002460| 3d 83 dd 00 e9 0e 1b 21 | 16 25 ea 0e 1b 21 16 26 |=......!|.%...!.&|
|00002470| 82 e8 00 60 89 16 25 16 | 26 0e 19 ca 4c 88 eb ec |...`..%.|&...L...|
|00002480| 21 83 f4 00 ec d4 20 ed | 5c 22 88 ee 20 88 e9 0e |!..... .|\".. ...|
|00002490| 1b 21 ea 0e 1b 21 1e 2a | 89 1e 29 0e 2a 3d 84 14 |.!...!.*|..).*=..|
|000024a0| 01 ef 0e 18 0e 29 0e 2a | 7b 5c 22 88 ca 1e 30 f1 |.....).*|{\"...0.|
|000024b0| 0e 32 21 f3 3d 83 30 01 | f4 0e 29 0e 2a 5c 22 88 |.2!.=.0.|..).*\".|
|000024c0| f5 20 88 f5 20 88 82 7b | 01 f1 0e 32 21 f6 3e 83 |. .. ..{|...2!.>.|
|000024d0| 5a 01 f7 f8 0e 32 21 3e | 83 5a 01 f9 0e 29 0e 2a |Z....2!>|.Z...).*|
|000024e0| 5c 22 88 fa 0e 1b 0e 29 | 89 23 88 f5 20 88 f5 20 |\".....)|.#.. .. |
|000024f0| 88 82 7b 01 f1 0e 32 21 | fb 3d 83 7b 01 fc f8 0e |..{...2!|.=.{....|
|00002500| 32 21 3e 83 7b 01 f9 0e | 29 0e 2a 5c 22 88 fa 0e |2!>.{...|).*\"...|
|00002510| 1b 0e 29 89 23 88 2b 0e | 27 2e 12 87 22 20 5b 69 |..).#.+.|'..." [i|
|00002520| 6e 69 74 69 61 6c 2d 65 | 76 65 6e 74 20 65 76 65 |nitial-e|vent eve|
|00002530| 6e 74 20 32 20 31 20 70 | 6f 73 6e 20 6d 6f 75 73 |nt 2 1 p|osn mous|
|00002540| 65 2d 6d 69 6e 69 62 75 | 66 66 65 72 2d 63 68 65 |e-minibu|ffer-che|
|00002550| 63 6b 20 77 69 6e 64 6f | 77 70 20 70 6f 73 69 74 |ck windo|wp posit|
|00002560| 69 6f 6e 20 65 72 72 6f | 72 20 22 43 75 72 73 6f |ion erro|r "Curso|
|00002570| 72 20 6e 6f 74 20 69 6e | 20 74 65 78 74 20 61 72 |r not in| text ar|
|00002580| 65 61 20 6f 66 20 77 69 | 6e 64 6f 77 22 20 6e 69 |ea of wi|ndow" ni|
|00002590| 6c 20 6f 72 69 67 2d 70 | 6f 69 6e 74 2d 6d 61 72 |l orig-p|oint-mar|
|000025a0| 6b 65 72 20 6f 72 69 67 | 2d 77 69 6e 64 6f 77 20 |ker orig|-window |
|000025b0| 73 65 6c 65 63 74 65 64 | 2d 77 69 6e 64 6f 77 20 |selected|-window |
|000025c0| 73 65 6c 65 63 74 2d 77 | 69 6e 64 6f 77 20 70 6f |select-w|indow po|
|000025d0| 69 6e 74 2d 6d 61 72 6b | 65 72 20 28 28 62 79 74 |int-mark|er ((byt|
|000025e0| 65 2d 63 6f 64 65 20 22 | c0 09 21 62 88 09 c2 89 |e-code "|..!b....|
|000025f0| 93 88 c3 5c 66 21 87 22 | 20 5b 6d 61 72 6b 65 72 |...\f!."| [marker|
|00002600| 2d 70 6f 73 69 74 69 6f | 6e 20 6f 72 69 67 2d 70 |-positio|n orig-p|
|00002610| 6f 69 6e 74 2d 6d 61 72 | 6b 65 72 20 6e 69 6c 20 |oint-mar|ker nil |
|00002620| 73 65 6c 65 63 74 2d 77 | 69 6e 64 6f 77 20 6f 72 |select-w|indow or|
|00002630| 69 67 2d 77 69 6e 64 6f | 77 5d 20 33 29 29 20 61 |ig-windo|w] 3)) a|
|00002640| 73 73 6f 63 20 63 75 72 | 73 6f 72 2d 74 79 70 65 |ssoc cur|sor-type|
|00002650| 20 66 72 61 6d 65 2d 70 | 61 72 61 6d 65 74 65 72 | frame-p|arameter|
|00002660| 73 20 73 65 6c 65 63 74 | 65 64 2d 66 72 61 6d 65 |s select|ed-frame|
|00002670| 20 6f 72 69 67 2d 63 75 | 72 73 6f 72 2d 74 79 70 | orig-cu|rsor-typ|
|00002680| 65 20 28 28 62 79 74 65 | 2d 63 6f 64 65 20 22 c0 |e ((byte|-code ".|
|00002690| c1 21 83 0f 00 c1 c2 20 | c3 5c 66 42 43 5c 22 88 |.!..... |.\fBC\".|
|000026a0| c0 87 22 20 5b 66 62 6f | 75 6e 64 70 20 6d 6f 64 |.." [fbo|undp mod|
|000026b0| 69 66 79 2d 66 72 61 6d | 65 2d 70 61 72 61 6d 65 |ify-fram|e-parame|
|000026c0| 74 65 72 73 20 73 65 6c | 65 63 74 65 64 2d 66 72 |ters sel|ected-fr|
|000026d0| 61 6d 65 20 63 75 72 73 | 6f 72 2d 74 79 70 65 20 |ame curs|or-type |
|000026e0| 6f 72 69 67 2d 63 75 72 | 73 6f 72 2d 74 79 70 65 |orig-cur|sor-type|
|000026f0| 5d 20 34 29 29 20 6d 6f | 75 73 65 2d 73 65 6c 2d |] 4)) mo|use-sel-|
|00002700| 73 65 6c 65 63 74 69 6f | 6e 2d 74 68 69 6e 67 20 |selectio|n-thing |
|00002710| 73 65 6c 65 63 74 69 6f | 6e 20 74 68 69 6e 67 2d |selectio|n thing-|
|00002720| 73 79 6d 62 6f 6c 20 6d | 6f 75 73 65 2d 73 65 6c |symbol m|ouse-sel|
|00002730| 2d 73 65 6c 65 63 74 69 | 6f 6e 2d 6f 76 65 72 6c |-selecti|on-overl|
|00002740| 61 79 20 6f 76 65 72 6c | 61 79 20 77 69 6e 64 6f |ay overl|ay windo|
|00002750| 77 2d 66 72 61 6d 65 20 | 6f 72 69 67 2d 77 69 6e |w-frame |orig-win|
|00002760| 64 6f 77 2d 66 72 61 6d | 65 20 77 69 6e 64 6f 77 |dow-fram|e window|
|00002770| 2d 65 64 67 65 73 20 74 | 6f 70 20 33 20 62 6f 74 |-edges t|op 3 bot|
|00002780| 74 6f 6d 20 6d 61 72 6b | 2d 61 63 74 69 76 65 20 |tom mark|-active |
|00002790| 30 20 65 63 68 6f 2d 6b | 65 79 73 74 72 6f 6b 65 |0 echo-k|eystroke|
|000027a0| 73 20 6d 69 6e 20 6d 61 | 78 20 64 69 72 65 63 74 |s min ma|x direct|
|000027b0| 69 6f 6e 20 6f 76 65 72 | 6c 61 79 2d 62 75 66 66 |ion over|lay-buff|
|000027c0| 65 72 20 6f 76 65 72 6c | 61 79 2d 73 74 61 72 74 |er overl|ay-start|
|000027d0| 20 6f 76 65 72 6c 61 79 | 2d 65 6e 64 20 66 62 6f | overlay|-end fbo|
|000027e0| 75 6e 64 70 20 6d 6f 64 | 69 66 79 2d 66 72 61 6d |undp mod|ify-fram|
|000027f0| 65 2d 70 61 72 61 6d 65 | 74 65 72 73 20 28 28 63 |e-parame|ters ((c|
|00002800| 75 72 73 6f 72 2d 74 79 | 70 65 20 2e 20 62 61 72 |ursor-ty|pe . bar|
|00002810| 29 29 20 28 6c 61 6d 62 | 64 61 20 6e 69 6c 20 28 |)) (lamb|da nil (|
|00002820| 74 72 61 63 6b 2d 6d 6f | 75 73 65 20 28 62 79 74 |track-mo|use (byt|
|00002830| 65 2d 63 6f 64 65 20 22 | 08 83 5c 66 00 08 89 11 |e-code "|..\f....|
|00002840| c2 10 82 18 00 c3 20 89 | 11 3a 85 99 01 09 40 c4 |...... .|.:....@.|
|00002850| 3e 85 99 01 0d 4a 09 19 | c6 09 38 3a 83 2a 00 c6 |>....J..|..8:.*..|
|00002860| 82 2b 00 c7 09 38 29 1e | 08 1e 09 09 a2 ca 3d 84 |.+...8).|......=.|
|00002870| 01 01 0e 08 89 1e 0b 40 | 29 83 65 00 0e 08 89 1e |.......@|).e.....|
|00002880| 0b 40 29 1e 5c 66 cd 0e | 5c 66 21 83 5a 00 ce 0e |.@).\f..|\f!.Z...|
|00002890| 5c 66 21 82 5c 5c 00 0e | 5c 66 29 ce 0e 0f 21 3d |\f!.\\..|\f)...!=|
|000028a0| 83 01 01 0e 08 89 1e 0b | 40 29 0e 0f 3d 84 bd 00 |........|@)..=...|
|000028b0| d0 20 41 41 89 1e 11 83 | 99 00 6f 84 99 00 0e 11 |. AA....|..o.....|
|000028c0| 0e 12 57 83 99 00 d3 0e | 0f 0e 11 0e 12 5a 0e 14 |..W.....|.....Z..|
|000028d0| 0e 15 24 88 82 b9 00 0e | 11 83 b9 00 6d 84 b9 00 |..$.....|....m...|
|000028e0| 0e 11 0e 16 59 83 b9 00 | d3 0e 0f 0e 11 0e 16 5a |....Y...|.......Z|
|000028f0| 54 0e 14 0e 17 24 88 29 | 82 01 01 0e 08 89 1e 0b |T....$.)|........|
|00002900| 41 40 3a 83 d0 00 0e 0b | 41 40 40 82 d4 00 0e 0b |A@:.....|A@@.....|
|00002910| 41 40 29 d8 3d 83 e7 00 | d3 0e 0f c7 0e 14 0e 17 |A@).=...|........|
|00002920| 24 88 82 01 01 0e 08 89 | 1e 0b 41 40 3a 83 fa 00 |$.......|..A@:...|
|00002930| 0e 0b 41 40 40 82 fe 00 | 0e 0b 41 40 29 62 88 0e |..A@@...|..A@)b..|
|00002940| 19 84 24 01 0e 17 0e 15 | 3d 84 24 01 60 0e 17 0e |..$.....|=.$.`...|
|00002950| 15 5c 5c c6 a5 57 83 1e | 01 da 82 1f 01 c7 16 19 |.\\..W..|........|
|00002960| 82 49 01 0e 19 da 3d 84 | 38 01 60 0e 17 58 83 38 |.I....=.|8.`..X.8|
|00002970| 01 da 16 19 82 49 01 0e | 19 c7 3d 84 49 01 60 0e |.....I..|..=.I.`.|
|00002980| 15 59 83 49 01 c7 16 19 | 0e 09 83 75 01 0e 19 c7 |.Y.I....|...u....|
|00002990| 3d 83 5c 5c 01 6d 84 5c | 5c 01 c7 75 88 60 1e 1b |=.\\.m.\|\..u.`..|
|000029a0| 0e 19 c7 3d 83 6b 01 0e | 17 82 6d 01 0e 15 62 88 |...=.k..|..m...b.|
|000029b0| c2 dc dd 8f 88 29 de 0e | 14 0e 19 c7 3d 83 84 01 |.....)..|....=...|
|000029c0| 0e 17 82 85 01 60 0e 19 | da 3d 83 91 01 0e 15 82 |.....`..|.=......|
|000029d0| 92 01 60 70 24 88 2a 82 | 00 00 87 22 20 5b 69 6e |..`p$.*.|..." [in|
|000029e0| 69 74 69 61 6c 2d 65 76 | 65 6e 74 20 65 76 65 6e |itial-ev|ent even|
|000029f0| 74 20 6e 69 6c 20 72 65 | 61 64 2d 65 76 65 6e 74 |t nil re|ad-event|
|00002a00| 20 28 6d 6f 75 73 65 2d | 6d 6f 76 65 6d 65 6e 74 | (mouse-|movement|
|00002a10| 20 73 77 69 74 63 68 2d | 66 72 61 6d 65 29 20 74 | switch-|frame) t|
|00002a20| 68 69 6e 67 2d 73 79 6d | 62 6f 6c 20 32 20 31 20 |hing-sym|bol 2 1 |
|00002a30| 65 6e 64 20 73 65 6c 65 | 63 74 69 6f 6e 2d 74 68 |end sele|ction-th|
|00002a40| 69 6e 67 20 73 77 69 74 | 63 68 2d 66 72 61 6d 65 |ing swit|ch-frame|
|00002a50| 20 70 6f 73 69 74 69 6f | 6e 20 70 6f 73 6e 2d 77 | positio|n posn-w|
|00002a60| 20 77 69 6e 64 6f 77 70 | 20 77 69 6e 64 6f 77 2d | windowp| window-|
|00002a70| 66 72 61 6d 65 20 6f 72 | 69 67 2d 77 69 6e 64 6f |frame or|ig-windo|
|00002a80| 77 20 6d 6f 75 73 65 2d | 70 6f 73 69 74 69 6f 6e |w mouse-|position|
|00002a90| 20 65 6e 64 2d 72 6f 77 | 20 74 6f 70 20 6d 6f 75 | end-row| top mou|
|00002aa0| 73 65 2d 73 63 72 6f 6c | 6c 2d 73 75 62 72 20 6f |se-scrol|l-subr o|
|00002ab0| 76 65 72 6c 61 79 20 6d | 61 78 20 62 6f 74 74 6f |verlay m|ax botto|
|00002ac0| 6d 20 6d 69 6e 20 6d 6f | 64 65 2d 6c 69 6e 65 20 |m min mo|de-line |
|00002ad0| 64 69 72 65 63 74 69 6f | 6e 20 2d 31 20 67 6f 61 |directio|n -1 goa|
|00002ae0| 6c 20 28 62 79 74 65 2d | 63 6f 64 65 20 22 08 09 |l (byte-|code "..|
|00002af0| 60 5a 5f c2 56 83 12 00 | c3 5c 66 08 5c 22 88 82 |`Z_.V...|.\f.\"..|
|00002b00| 00 00 60 1d c3 5c 66 08 | 5b 5c 22 88 08 09 60 5a |..`..\f.|[\"...`Z|
|00002b10| 5f c2 56 83 28 00 0d 82 | 29 00 60 62 88 29 c2 87 |_.V.(...|).`b.)..|
|00002b20| 22 20 5b 64 69 72 65 63 | 74 69 6f 6e 20 67 6f 61 |" [direc|tion goa|
|00002b30| 6c 20 30 20 66 6f 72 77 | 61 72 64 2d 74 68 69 6e |l 0 forw|ard-thin|
|00002b40| 67 20 73 65 6c 65 63 74 | 69 6f 6e 2d 74 68 69 6e |g select|ion-thin|
|00002b50| 67 20 65 6e 64 5d 20 33 | 29 20 28 28 65 72 72 6f |g end] 3|) ((erro|
|00002b60| 72 29 29 20 6d 6f 76 65 | 2d 6f 76 65 72 6c 61 79 |r)) move|-overlay|
|00002b70| 5d 20 36 29 29 29 20 6d | 6f 75 73 65 2d 73 65 6c |] 6))) m|ouse-sel|
|00002b80| 2d 73 65 74 2d 73 65 6c | 65 63 74 69 6f 6e 20 74 |-set-sel|ection t|
|00002b90| 68 69 73 2d 63 6f 6d 6d | 61 6e 64 20 65 76 65 6e |his-comm|and even|
|00002ba0| 74 2d 62 61 73 69 63 2d | 74 79 70 65 20 6c 61 73 |t-basic-|type las|
|00002bb0| 74 2d 69 6e 70 75 74 2d | 65 76 65 6e 74 20 6d 6f |t-input-|event mo|
|00002bc0| 75 73 65 2d 32 20 63 6f | 70 79 2d 72 65 67 69 6f |use-2 co|py-regio|
|00002bd0| 6e 2d 61 73 2d 6b 69 6c | 6c 20 72 65 61 64 2d 65 |n-as-kil|l read-e|
|00002be0| 76 65 6e 74 20 28 6d 6f | 75 73 65 2d 31 20 6d 6f |vent (mo|use-1 mo|
|00002bf0| 75 73 65 2d 33 29 20 64 | 6f 77 6e 20 65 76 65 6e |use-3) d|own even|
|00002c00| 74 2d 6d 6f 64 69 66 69 | 65 72 73 20 6b 69 6c 6c |t-modifi|ers kill|
|00002c10| 2d 72 65 67 69 6f 6e 20 | 6d 6f 76 65 2d 6f 76 65 |-region |move-ove|
|00002c20| 72 6c 61 79 20 6d 6f 75 | 73 65 2d 33 20 64 6f 75 |rlay mou|se-3 dou|
|00002c30| 62 6c 65 5d 20 35 20 28 | 23 24 20 2e 20 38 37 36 |ble] 5 (|#$ . 876|
|00002c40| 35 29 5d 29 0a 23 40 31 | 32 34 20 49 6e 73 65 72 |5)]).#@1|24 Inser|
|00002c50| 74 20 74 68 65 20 63 6f | 6e 74 65 6e 74 73 20 6f |t the co|ntents o|
|00002c60| 66 20 74 68 65 20 50 52 | 49 4d 41 52 59 20 73 65 |f the PR|IMARY se|
|00002c70| 6c 65 63 74 69 6f 6e 20 | 61 74 20 6d 6f 75 73 65 |lection |at mouse|
|00002c80| 20 63 6c 69 63 6b 2e 0a | 49 66 20 60 6d 6f 75 73 | click..|If `mous|
|00002c90| 65 2d 79 61 6e 6b 2d 61 | 74 2d 70 6f 69 6e 74 27 |e-yank-a|t-point'|
|00002ca0| 20 69 73 20 6e 6f 6e 2d | 6e 69 6c 2c 20 69 6e 73 | is non-|nil, ins|
|00002cb0| 65 72 74 20 61 74 20 70 | 6f 69 6e 74 20 69 6e 73 |ert at p|oint ins|
|00002cc0| 74 65 61 64 2e 1f 0a 28 | 64 65 66 61 6c 69 61 73 |tead...(|defalias|
|00002cd0| 20 27 6d 6f 75 73 65 2d | 69 6e 73 65 72 74 2d 73 | 'mouse-|insert-s|
|00002ce0| 65 6c 65 63 74 69 6f 6e | 20 23 5b 28 65 76 65 6e |election| #[(even|
|00002cf0| 74 29 20 22 c0 c1 5c 6e | 5c 22 87 22 20 5b 6d 6f |t) "..\n|\"." [mo|
|00002d00| 75 73 65 2d 69 6e 73 65 | 72 74 2d 73 65 6c 65 63 |use-inse|rt-selec|
|00002d10| 74 69 6f 6e 2d 69 6e 74 | 65 72 6e 61 6c 20 50 52 |tion-int|ernal PR|
|00002d20| 49 4d 41 52 59 20 65 76 | 65 6e 74 5d 20 33 20 28 |IMARY ev|ent] 3 (|
|00002d30| 23 24 20 2e 20 31 31 33 | 33 39 29 20 22 65 22 5d |#$ . 113|39) "e"]|
|00002d40| 29 0a 23 40 31 32 36 20 | 49 6e 73 65 72 74 20 74 |).#@126 |Insert t|
|00002d50| 68 65 20 63 6f 6e 74 65 | 6e 74 73 20 6f 66 20 74 |he conte|nts of t|
|00002d60| 68 65 20 53 45 43 4f 4e | 44 41 52 59 20 73 65 6c |he SECON|DARY sel|
|00002d70| 65 63 74 69 6f 6e 20 61 | 74 20 6d 6f 75 73 65 20 |ection a|t mouse |
|00002d80| 63 6c 69 63 6b 2e 0a 49 | 66 20 60 6d 6f 75 73 65 |click..I|f `mouse|
|00002d90| 2d 79 61 6e 6b 2d 61 74 | 2d 70 6f 69 6e 74 27 20 |-yank-at|-point' |
|00002da0| 69 73 20 6e 6f 6e 2d 6e | 69 6c 2c 20 69 6e 73 65 |is non-n|il, inse|
|00002db0| 72 74 20 61 74 20 70 6f | 69 6e 74 20 69 6e 73 74 |rt at po|int inst|
|00002dc0| 65 61 64 2e 1f 0a 28 64 | 65 66 61 6c 69 61 73 20 |ead...(d|efalias |
|00002dd0| 27 6d 6f 75 73 65 2d 69 | 6e 73 65 72 74 2d 73 65 |'mouse-i|nsert-se|
|00002de0| 63 6f 6e 64 61 72 79 20 | 23 5b 28 65 76 65 6e 74 |condary |#[(event|
|00002df0| 29 20 22 c0 c1 5c 6e 5c | 22 87 22 20 5b 6d 6f 75 |) "..\n\|"." [mou|
|00002e00| 73 65 2d 69 6e 73 65 72 | 74 2d 73 65 6c 65 63 74 |se-inser|t-select|
|00002e10| 69 6f 6e 2d 69 6e 74 65 | 72 6e 61 6c 20 53 45 43 |ion-inte|rnal SEC|
|00002e20| 4f 4e 44 41 52 59 20 65 | 76 65 6e 74 5d 20 33 20 |ONDARY e|vent] 3 |
|00002e30| 28 23 24 20 2e 20 31 31 | 35 39 32 29 20 22 65 22 |(#$ . 11|592) "e"|
|00002e40| 5d 29 0a 23 40 31 32 32 | 20 49 6e 73 65 72 74 20 |]).#@122| Insert |
|00002e50| 74 68 65 20 63 6f 6e 74 | 65 6e 74 73 20 6f 66 20 |the cont|ents of |
|00002e60| 74 68 65 20 6e 61 6d 65 | 64 20 53 45 4c 45 43 54 |the name|d SELECT|
|00002e70| 49 4f 4e 20 61 74 20 6d | 6f 75 73 65 20 63 6c 69 |ION at m|ouse cli|
|00002e80| 63 6b 2e 0a 49 66 20 60 | 6d 6f 75 73 65 2d 79 61 |ck..If `|mouse-ya|
|00002e90| 6e 6b 2d 61 74 2d 70 6f | 69 6e 74 27 20 69 73 20 |nk-at-po|int' is |
|00002ea0| 6e 6f 6e 2d 6e 69 6c 2c | 20 69 6e 73 65 72 74 20 |non-nil,| insert |
|00002eb0| 61 74 20 70 6f 69 6e 74 | 20 69 6e 73 74 65 61 64 |at point| instead|
|00002ec0| 2e 1f 0a 28 64 65 66 61 | 6c 69 61 73 20 27 6d 6f |...(defa|lias 'mo|
|00002ed0| 75 73 65 2d 69 6e 73 65 | 72 74 2d 73 65 6c 65 63 |use-inse|rt-selec|
|00002ee0| 74 69 6f 6e 2d 69 6e 74 | 65 72 6e 61 6c 20 23 5b |tion-int|ernal #[|
|00002ef0| 28 73 65 6c 65 63 74 69 | 6f 6e 20 65 76 65 6e 74 |(selecti|on event|
|00002f00| 29 20 22 08 84 08 00 c1 | 5c 6e 21 88 0b 85 1a 00 |) ".....|\n!.....|
|00002f10| c4 60 c5 5c 22 88 0b 0e | 06 21 86 19 00 c7 63 87 |.`.\"...|.!....c.|
|00002f20| 22 20 5b 6d 6f 75 73 65 | 2d 79 61 6e 6b 2d 61 74 |" [mouse|-yank-at|
|00002f30| 2d 70 6f 69 6e 74 20 6d | 6f 75 73 65 2d 73 65 74 |-point m|ouse-set|
|00002f40| 2d 70 6f 69 6e 74 20 65 | 76 65 6e 74 20 6d 6f 75 |-point e|vent mou|
|00002f50| 73 65 2d 73 65 6c 2d 67 | 65 74 2d 73 65 6c 65 63 |se-sel-g|et-selec|
|00002f60| 74 69 6f 6e 2d 66 75 6e | 63 74 69 6f 6e 20 70 75 |tion-fun|ction pu|
|00002f70| 73 68 2d 6d 61 72 6b 20 | 6e 6f 6d 73 67 20 73 65 |sh-mark |nomsg se|
|00002f80| 6c 65 63 74 69 6f 6e 20 | 22 22 5d 20 33 20 28 23 |lection |""] 3 (#|
|00002f90| 24 20 2e 20 31 31 38 34 | 39 29 5d 29 0a 23 40 34 |$ . 1184|9)]).#@4|
|00002fa0| 32 20 52 65 6d 6f 76 65 | 20 74 68 65 20 6f 76 65 |2 Remove| the ove|
|00002fb0| 72 6c 61 79 20 66 6f 72 | 20 61 20 6c 6f 73 74 20 |rlay for| a lost |
|00002fc0| 73 65 6c 65 63 74 69 6f | 6e 2e 1f 0a 28 64 65 66 |selectio|n...(def|
|00002fd0| 61 6c 69 61 73 20 27 6d | 6f 75 73 65 2d 73 65 6c |alias 'm|ouse-sel|
|00002fe0| 2d 6c 6f 73 74 2d 73 65 | 6c 65 63 74 69 6f 6e 2d |-lost-se|lection-|
|00002ff0| 68 6f 6f 6b 20 23 5b 28 | 73 65 6c 65 63 74 69 6f |hook #[(|selectio|
|00003000| 6e 29 20 22 c0 09 21 1a | c3 5c 6e 21 29 87 22 20 |n) "..!.|.\n!)." |
|00003010| 5b 6d 6f 75 73 65 2d 73 | 65 6c 2d 73 65 6c 65 63 |[mouse-s|el-selec|
|00003020| 74 69 6f 6e 2d 6f 76 65 | 72 6c 61 79 20 73 65 6c |tion-ove|rlay sel|
|00003030| 65 63 74 69 6f 6e 20 6f | 76 65 72 6c 61 79 20 64 |ection o|verlay d|
|00003040| 65 6c 65 74 65 2d 6f 76 | 65 72 6c 61 79 5d 20 32 |elete-ov|erlay] 2|
|00003050| 20 28 23 24 20 2e 20 31 | 32 31 39 34 29 5d 29 0a | (#$ . 1|2194)]).|
|00003060| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c0 c1 c2 5c |(byte-co|de "...\|
|00003070| 22 88 0b 83 4b 00 c4 c5 | 21 88 c4 c6 21 88 c4 c7 |"...K...|!...!...|
|00003080| 21 88 c8 c9 ca 5c 22 88 | c8 cb cc 5c 22 88 c4 cd |!....\".|...\"...|
|00003090| 21 88 c4 ce 21 88 c4 cf | 21 88 c8 d0 d1 5c 22 88 |!...!...|!....\".|
|000030a0| c8 d2 d3 5c 22 88 0b d4 | 3d 84 46 00 c8 d5 d6 5c |...\"...|=.F....\|
|000030b0| 22 88 d7 16 18 d7 16 19 | c8 da db 5c 22 88 dc 16 |".......|...\"...|
|000030c0| 1d dd 0e 1e 42 16 1e d7 | 87 22 20 5b 61 64 64 2d |....B...|." [add-|
|000030d0| 68 6f 6f 6b 20 78 2d 6c | 6f 73 74 2d 73 65 6c 65 |hook x-l|ost-sele|
|000030e0| 63 74 69 6f 6e 2d 68 6f | 6f 6b 73 20 6d 6f 75 73 |ction-ho|oks mous|
|000030f0| 65 2d 73 65 6c 2d 6c 6f | 73 74 2d 73 65 6c 65 63 |e-sel-lo|st-selec|
|00003100| 74 69 6f 6e 2d 68 6f 6f | 6b 20 6d 6f 75 73 65 2d |tion-hoo|k mouse-|
|00003110| 73 65 6c 2d 64 65 66 61 | 75 6c 74 2d 62 69 6e 64 |sel-defa|ult-bind|
|00003120| 69 6e 67 73 20 67 6c 6f | 62 61 6c 2d 75 6e 73 65 |ings glo|bal-unse|
|00003130| 74 2d 6b 65 79 20 5b 6d | 6f 75 73 65 2d 31 5d 20 |t-key [m|ouse-1] |
|00003140| 5b 64 72 61 67 2d 6d 6f | 75 73 65 2d 31 5d 20 5b |[drag-mo|use-1] [|
|00003150| 6d 6f 75 73 65 2d 33 5d | 20 67 6c 6f 62 61 6c 2d |mouse-3]| global-|
|00003160| 73 65 74 2d 6b 65 79 20 | 5b 64 6f 77 6e 2d 6d 6f |set-key |[down-mo|
|00003170| 75 73 65 2d 31 5d 20 6d | 6f 75 73 65 2d 73 65 6c |use-1] m|ouse-sel|
|00003180| 65 63 74 20 5b 64 6f 77 | 6e 2d 6d 6f 75 73 65 2d |ect [dow|n-mouse-|
|00003190| 33 5d 20 6d 6f 75 73 65 | 2d 65 78 74 65 6e 64 20 |3] mouse|-extend |
|000031a0| 5b 4d 2d 6d 6f 75 73 65 | 2d 31 5d 20 5b 4d 2d 64 |[M-mouse|-1] [M-d|
|000031b0| 72 61 67 2d 6d 6f 75 73 | 65 2d 31 5d 20 5b 4d 2d |rag-mous|e-1] [M-|
|000031c0| 6d 6f 75 73 65 2d 33 5d | 20 5b 4d 2d 64 6f 77 6e |mouse-3]| [M-down|
|000031d0| 2d 6d 6f 75 73 65 2d 31 | 5d 20 6d 6f 75 73 65 2d |-mouse-1|] mouse-|
|000031e0| 73 65 6c 65 63 74 2d 73 | 65 63 6f 6e 64 61 72 79 |select-s|econdary|
|000031f0| 20 5b 4d 2d 64 6f 77 6e | 2d 6d 6f 75 73 65 2d 33 | [M-down|-mouse-3|
|00003200| 5d 20 6d 6f 75 73 65 2d | 65 78 74 65 6e 64 2d 73 |] mouse-|extend-s|
|00003210| 65 63 6f 6e 64 61 72 79 | 20 69 6e 74 65 72 70 72 |econdary| interpr|
|00003220| 6f 67 72 61 6d 2d 63 75 | 74 2d 70 61 73 74 65 20 |ogram-cu|t-paste |
|00003230| 5b 6d 6f 75 73 65 2d 32 | 5d 20 6d 6f 75 73 65 2d |[mouse-2|] mouse-|
|00003240| 69 6e 73 65 72 74 2d 73 | 65 6c 65 63 74 69 6f 6e |insert-s|election|
|00003250| 20 6e 69 6c 20 69 6e 74 | 65 72 70 72 6f 67 72 61 | nil int|erprogra|
|00003260| 6d 2d 63 75 74 2d 66 75 | 6e 63 74 69 6f 6e 20 69 |m-cut-fu|nction i|
|00003270| 6e 74 65 72 70 72 6f 67 | 72 61 6d 2d 70 61 73 74 |nterprog|ram-past|
|00003280| 65 2d 66 75 6e 63 74 69 | 6f 6e 20 5b 4d 2d 6d 6f |e-functi|on [M-mo|
|00003290| 75 73 65 2d 32 5d 20 6d | 6f 75 73 65 2d 69 6e 73 |use-2] m|ouse-ins|
|000032a0| 65 72 74 2d 73 65 63 6f | 6e 64 61 72 79 20 22 6d |ert-seco|ndary "m|
|000032b0| 69 6b 65 77 40 67 6f 70 | 68 65 72 2e 64 6f 73 6c |ikew@gop|her.dosl|
|000032c0| 69 2e 67 6f 76 74 2e 6e | 7a 22 20 6d 6f 75 73 65 |i.govt.n|z" mouse|
|000032d0| 2d 73 65 6c 2d 6d 61 69 | 6e 74 61 69 6e 65 72 2d |-sel-mai|ntainer-|
|000032e0| 61 64 64 72 65 73 73 20 | 63 75 72 72 65 6e 74 2d |address |current-|
|000032f0| 6c 6f 61 64 2d 6c 69 73 | 74 5d 20 33 29 0a 23 40 |load-lis|t] 3).#@|
|00003300| 34 37 20 53 75 62 6d 69 | 74 20 61 20 62 75 67 20 |47 Submi|t a bug |
|00003310| 72 65 70 6f 72 74 20 6f | 6e 20 6d 6f 75 73 65 2d |report o|n mouse-|
|00003320| 73 65 6c 2e 65 6c 20 76 | 69 61 20 6d 61 69 6c 2e |sel.el v|ia mail.|
|00003330| 1f 0a 28 64 65 66 61 6c | 69 61 73 20 27 6d 6f 75 |..(defal|ias 'mou|
|00003340| 73 65 2d 73 65 6c 2d 73 | 75 62 6d 69 74 2d 62 75 |se-sel-s|ubmit-bu|
|00003350| 67 2d 72 65 70 6f 72 74 | 20 23 5b 6e 69 6c 20 22 |g-report| #[nil "|
|00003360| c0 c1 21 88 c2 0b c4 c5 | c6 c7 8f 86 0f 00 c8 50 |..!.....|.......P|
|00003370| c9 ca cb cc cd ce cf d0 | d1 af 09 23 87 22 20 5b |........|...#." [|
|00003380| 72 65 71 75 69 72 65 20 | 72 65 70 6f 72 74 65 72 |require |reporter|
|00003390| 20 72 65 70 6f 72 74 65 | 72 2d 73 75 62 6d 69 74 | reporte|r-submit|
|000033a0| 2d 62 75 67 2d 72 65 70 | 6f 72 74 20 6d 6f 75 73 |-bug-rep|ort mous|
|000033b0| 65 2d 73 65 6c 2d 6d 61 | 69 6e 74 61 69 6e 65 72 |e-sel-ma|intainer|
|000033c0| 2d 61 64 64 72 65 73 73 | 20 22 6d 6f 75 73 65 2d |-address| "mouse-|
|000033d0| 73 65 6c 2e 65 6c 20 22 | 20 6e 69 6c 20 6d 6f 75 |sel.el "| nil mou|
|000033e0| 73 65 2d 73 65 6c 2d 76 | 65 72 73 69 6f 6e 20 28 |se-sel-v|ersion (|
|000033f0| 28 65 72 72 6f 72 29 29 | 20 22 28 64 69 73 74 72 |(error))| "(distr|
|00003400| 69 62 75 74 65 64 20 77 | 69 74 68 20 45 6d 61 63 |ibuted w|ith Emac|
|00003410| 73 29 22 20 74 72 61 6e | 73 69 65 6e 74 2d 6d 61 |s)" tran|sient-ma|
|00003420| 72 6b 2d 6d 6f 64 65 20 | 64 65 6c 65 74 65 2d 73 |rk-mode |delete-s|
|00003430| 65 6c 65 63 74 69 6f 6e | 2d 6d 6f 64 65 20 6d 6f |election|-mode mo|
|00003440| 75 73 65 2d 73 65 6c 2d | 64 65 66 61 75 6c 74 2d |use-sel-|default-|
|00003450| 62 69 6e 64 69 6e 67 73 | 20 6d 6f 75 73 65 2d 73 |bindings| mouse-s|
|00003460| 65 6c 2d 6c 65 61 76 65 | 2d 70 6f 69 6e 74 2d 6e |el-leave|-point-n|
|00003470| 65 61 72 2d 6d 6f 75 73 | 65 20 6d 6f 75 73 65 2d |ear-mous|e mouse-|
|00003480| 73 65 6c 2d 63 79 63 6c | 65 2d 63 6c 69 63 6b 73 |sel-cycl|e-clicks|
|00003490| 20 6d 6f 75 73 65 2d 73 | 65 6c 2d 73 65 6c 65 63 | mouse-s|el-selec|
|000034a0| 74 69 6f 6e 2d 61 6c 69 | 73 74 20 6d 6f 75 73 65 |tion-ali|st mouse|
|000034b0| 2d 73 65 6c 2d 73 65 74 | 2d 73 65 6c 65 63 74 69 |-sel-set|-selecti|
|000034c0| 6f 6e 2d 66 75 6e 63 74 | 69 6f 6e 20 6d 6f 75 73 |on-funct|ion mous|
|000034d0| 65 2d 73 65 6c 2d 67 65 | 74 2d 73 65 6c 65 63 74 |e-sel-ge|t-select|
|000034e0| 69 6f 6e 2d 66 75 6e 63 | 74 69 6f 6e 20 6d 6f 75 |ion-func|tion mou|
|000034f0| 73 65 2d 79 61 6e 6b 2d | 61 74 2d 70 6f 69 6e 74 |se-yank-|at-point|
|00003500| 5d 20 31 32 20 28 23 24 | 20 2e 20 31 33 30 35 39 |] 12 (#$| . 13059|
|00003510| 29 20 6e 69 6c 5d 29 0a | |) nil]).| |
+--------+-------------------------+-------------------------+--------+--------+